Page 1 of 1
[SOLVED] Prevent sliding when colliding...
Posted: Sat Apr 04, 2009 8:34 am
by Linaxys
Hello,
I know there are some little example of jumping, flying around, but I'd like to know how to prevent my character from sliding on the terrain please ?
Is there something to stop the gravity action while he is colliding with the terrain ?
Thanks.
Posted: Sat Apr 04, 2009 7:04 pm
by Squarefox2
You can set a SlideSpeed while creating a collisionsResponse-Animator.
Try to set it to 0.0 .
Posted: Sat Apr 04, 2009 11:58 pm
by Linaxys
Thanks for your reply, but it's already set to 0 by default.
Do you have another idea please ?
Posted: Sun Apr 05, 2009 12:09 am
by B@z
are you using the collision animator for gravitation, or you implemented you own?
if youre implemented, then i think you should switch off the gravity if youre player is on ground, or if its a little higher, then just place it to the ground.
otherways do the gravity.
the collision response animator didnt do this for me, but i dont like when i cant see whats happening x3
Posted: Wed Apr 08, 2009 4:48 pm
by Linaxys
Well, I think I'm going to implement my own, I didn't know that I was able to do that.
Thanks for the hint !
Posted: Thu Apr 09, 2009 8:39 am
by abhishekdey1985
The default value of the gravity is set to core::vector3df(0f,-10f,0f). Make it zero and it should work.