Hi,
I want to track all contacts with platforms, and then if something collides with a platform at some point, I can make the elements in contact with the platform "jolt" upwards. My concern is a game object can come in contact with a platform, and then I record the contact in an array for later use (including the manifolds and contact points). But if the two objects colliding move in relation to each other after I have stored the contact point - what happens?
i.e. two objects can stay "in collision" but move relative to each other (imagine sliding over each other)....in which case isn't my stored contact obsolete as the world positions have changed??
Or does a contact "update itself" while the objects remain in collision?
Whats the best way to handle this? Do I need to use the PreSolve event which is called multiple times per collision and peel off the new manifold which is passed to preSolve as an argument?
Regards
i
I want to track all contacts with platforms, and then if something collides with a platform at some point, I can make the elements in contact with the platform "jolt" upwards. My concern is a game object can come in contact with a platform, and then I record the contact in an array for later use (including the manifolds and contact points). But if the two objects colliding move in relation to each other after I have stored the contact point - what happens?
i.e. two objects can stay "in collision" but move relative to each other (imagine sliding over each other)....in which case isn't my stored contact obsolete as the world positions have changed??
Or does a contact "update itself" while the objects remain in collision?
Whats the best way to handle this? Do I need to use the PreSolve event which is called multiple times per collision and peel off the new manifold which is passed to preSolve as an argument?
Regards
i