Hi all
I’m currently using Linear Impulse to get my hero character to jump. Which works to some degree, but it doesn’t have the fast fun paced speed that most platform games have.
It looks like the hero object is floating rather then jumping. Could anyone suggest a better way of doing this?
Please see the video below
https://www.youtube.com/watch?v=MYlzR4UXHEI&feature=youtu.be
Current code used
local vx,vy = hero:getLinearVelocity() hero:setLinearVelocity( vx,0 ) --hero.jump=110 hero:applyLinearImpulse( 0, -hero.jump, hero.x, hero.y )
Thank you!
Sat
P.S. I’ve also tried changing density, but didnt work.