This question was
closed Jan 27, 2017 at 06:17 PM by
HenryStrattonFW for the following reason:
Question has been asked by the same user a day prior, please do not ask the same question multiple times. http://answers.unity3d.com/questions/1303470/ontriggerexit-not-working-2.html
Question by
marshel126 · Jan 25, 2017 at 03:25 PM ·
collisiongravitycollision detectionontriggerexitcolider
OnTriggerExit not working
I have a code that has a platform drop when the player leaves it. But, at the code never calls, and the player just falls through the platform instantly. My code is
void Start () {
rb = GetComponent<Rigidbody> ();
}
void OnTriggerExit(Collider other){
if (other.gameObject.CompareTag ("player")){
rb.useGravity = true;
}
}
any fixes?
Comment
Follow this Question
Related Questions
ontriggerexit not working 0 Answers
Object refuses to collide 0 Answers
RigidBody Collisions Detect 0 Answers
Sphere bouncing back on edges of aligned objects 0 Answers
Is it possible to control prevent/enable colisions based on the value of a variable. 2 Answers