Game Development Community

Collision with moving platform question

by Igor Kuryatnikov · in Torque Game Builder · 06/16/2006 (2:53 am) · 2 replies

There is a problem: in platformer game I've made some moving platforms ( moving vertically ), and try to jump from it. But player isn't jumpnig till platform goes up. ( I've use setImpulseForcePolar() for jumping; collision settings for platforms is: receive collision is on, mode sticky; for player: send/receive collision&physics is on, mode sticky; collision callbacks is not used). From other platforms(stationary) and when moving platform goes down player is jumping right.

How can I force player to jump? Any solutions?

Any help is appreciated. Thanks.

#1
06/16/2006 (3:09 am)
Try to call setAtRest() on the player before applying the force. I have not used sticky mode really so this is just a wild guess.
#2
06/16/2006 (5:04 am)
Oh, thanks, but I already try it (I mean setAtRest()) - nothing is changes.
And, again, change to response "clamp" doesn't work :(
(It's only work when I change responce to "rigid", but it is not perfect way)

May be write custom responce behavior on C++ is solution, but there is no information about.
If you can say how it works(in few word) it is will be really great thing.
Anyway thanks a lot!