Help with better platform style jump, other than LinearImpulse (with Video)

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.

So I got some help with this, it looks like I had to change the physics scale, and maybe density(still tweaking it)
So now I have the following

physics.setScale( x );

Hope this helps someone else

So I got some help with this, it looks like I had to change the physics scale, and maybe density(still tweaking it)
So now I have the following

physics.setScale( x );

Hope this helps someone else