- Home /
get collision info from main script?
Is there a way to get collision info from a main script, or does onCollisionEnter only fire if it's in a script attached to the colliding gameObject. I have a main script which is on a gameObject that does not collide with anything but I want to detect collisions happening on all the other game objects in the scene
Answer by TheDarkVoid · Jun 24, 2012 at 08:07 PM
u might want to add a script to the object that collides that sends the collision info to the main script when it collides.
Your answer
Follow this Question
Related Questions
Collision with no onCollisionEnter 2 Answers
2D platformer levers and moving platforms question. 0 Answers
Can not get OnTriggerEnter and OnCollisionEnter to work!? 1 Answer
OnCollisionEnter not working! 0 Answers
Assessing variables from other scripts using an accessor seems inelegant. Please explain. 3 Answers