myPlayer.Getcomponent<Rigidbody>().isKenimatic == false; myPlayer.Getcomponent<Rigidbody().detectCollision = true; }