Quick Links: Gideros Home | Download Gideros | Developer Guide
New ChainShape - Gideros Forums
New ChainShape
  • ar2rsawseenar2rsawseen +1 -1 (+3 / -0 )
    Just love new ChainShape.
    Creating world boundaries now is as simple as:
    local body = world:createBody{type = b2.STATIC_BODY}
    body:setPosition(0, 0)
    local chain = b2.ChainShape.new()
    chain:createLoop(
    0,0,
    application:getContentWidth(), 0,
    application:getContentWidth(), application:getContentHeight(),
    0, application:getContentHeight()
    )
    local fixture = body:createFixture{shape = chain, density = 1.0,
    friction = 1, restitution = 0.3}

    And you can easily extend it to more complex terrain.
    Just love it.
  • edawg +1 -1 (+1 / -0 )
    Looking forward to the tutorial on your website implementing this :D

    Loves: ar2rsawseen

  • atilimatilim +1 -1 (+1 / -0 )
    I never thought chain shape could be used like this :)

    Loves: chipster123

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Login with Facebook Sign In with Google Sign In with OpenID

In this Discussion

Top Posters