cam.dudes
(cam.dudes)
March 13, 2013, 11:03am
1
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
klauser
(klauser)
March 13, 2013, 11:28am
2
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.
MarcoIT
(MarcoIT)
March 14, 2013, 12:35pm
3
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…
MarcoIT
(MarcoIT)
March 14, 2013, 1:51pm
4
basic character movements
/uploads/default/original/3X/e/2/e26c7a63ecdc2cf437fc426bee43088cb4ea3623.blendd=1363294139
cam.dudes
(cam.dudes)
March 14, 2013, 4:50pm
5
That makes SO much sense. Thank you!