Proper Movement Type?

I use setLinearVelocity. And I feel it is only good for FPS shooters that don’t involve falling or jumping or flying. What is a good movement type that would work well with those kind of game mechanics? Or how do I use linear velocity correctly?

Thanks

What are you having problems with with falling/jumping characters?

If you set the Z Vector like this:



object.setLinearVelocity(( 0, 0, object.getLinearVelocity()[2]), True)


then your character should fall fine. Infact it lets you do quite a lot as you can define how much to fall/jump.

i not understand why so few people use localLinearVelocity.
setVelocity() is obsolete

you can change just one axis without touch the other.

so, if you move forward , you have to change just localLinearVelocity.y
and if the character fall , all is right.

then if you keep ever the Z axis UP , you can use vel.z to make jump.

if you want i can do a simple blend .

5/6 line of code to manage all movement , with accelleration , maxSpeed ,and so on…

basic character movements

/uploads/default/original/3X/e/2/e26c7a63ecdc2cf437fc426bee43088cb4ea3623.blendd=1363294139

That makes SO much sense. Thank you! :smiley: