I am trying to cause that when the player step on piece of road it will have a gravity and fall down.
However when I start the game the piece of road the the player stands on fall down before the player moved to the next piece.
*The gravity and the kinematic are off.
public GameObject Player;
private Rigidbody gameObjectsRigidBody;
private void OnCollisionExit(Collision collision)
{
if (collision.gameObject.tag == "ground")
{
collision.gameObject.GetComponent<Rigidbody>().useGravity = true;
}
}
When i start the game: