Hey Everyone, just working on a script where if the character walks over a rigidbody that has no gravity and it waits .5 seconds and then gravity is applied and then falls.
Heres my script just wanting some advice not sure how to go about this?
function Start () {
Rigidbody.active = false;
}
function onCollisionStart(collision : Collision)
{
if (collision.gameObject.name == “MainChar”)
{
yield WaitForSeconds(0.5);
Rigidbody.active = true;
}
}