This project has moved and is read-only. For the latest updates, please go here.

Detecting if the player is on the ground

Apr 13, 2011 at 3:58 PM

Hi i used to be able to do this in fp2 but how do i determing the normal of a collision?

i want to only allow the player to jump if he is on the ground i therefore need to be able to detect if he is or not.

Iv supscribed to the oncollision even but not sure which data to access.

Apr 13, 2011 at 4:19 PM

Take a look at the contact manifold it basically represents an continuous area of collision and can also provide the normal which is just orthogonal to the area of collision.