- Home /
Question by
JeffHardddyyy · Nov 12, 2016 at 03:56 AM ·
c#rigidbodyontriggerenter
In need of help with OnTriggerEnter
So I have this script :
public GameObject Cube;
void OnTriggerEnter ()
{
transform.DetachChildren();
Cube.GetComponent<Rigidbody> ();
return;
}
void OnTriggerExit ()
{
return;
}
And I'm trying to get it so when it gets to "OnTriggerEnter" it breaks apart the prefab, Now I got it unbreaking the prefab, but when it does, It freezes in the box collider. I wanna know either whats happening or what I should do Please.
I would love help, thanks!
Comment
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
,Fast Moving Gameobject Collision and Trigger Check Failed 0 Answers
OnTriggerEnter not firing if rigidbody is on its side 0 Answers