Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Platform character move with physics — Gideros Forum

Platform character move with physics

twisttaptwisttap Member
edited December 2012 in General questions
Hello guys, what is the best way to move a character on a platform game using Box2D ? Until now I always stay away from using physics but now I want to give it a try. Which is the best, using applyLinearImpulse, applyForce or setLinearVelocity ?
If anyone have some experience with that and share I will be far more than happy.
Thanks :)

Comments

  • hgvyas123hgvyas123 Guru
    Accepted Answer
    setLinearVelocity would be cool to move character constantly in any direction if you have any friction on character or other body consider to setLinearVelocity frequently may be in enterFrame

    applyLinearImpulse would be cool for jumping purpose

    applyForce mostly used to give acceleration to any thing say ball is dropping from top to bottom under gravity or car is picking up speed

    :)
Sign In or Register to comment.