- Home /
Question by
TrojanFM · Jan 26, 2012 at 04:27 PM ·
javascriptcollisionrigidbodytag
Rigidbody Collision detection
Hey ,
i have a rigidbody as a Player and i want if the rigidbody collide with another rigidbody and have the tag "gravityChange" to make an event.
how can i do this with Javascript ?
Note: the Player must be a rigidbody in my situation.
Comment
Best Answer
Answer by FLASHDENMARK · Jan 26, 2012 at 04:30 PM
You use function OnCollisionEnter to check if the rigidbody hit another rigidbody with the tag "gravityChange" and carryout events accordingly.
Your answer
Follow this Question
Related Questions
How do I pass through certain colliders but detect all collisions? 1 Answer
Dragging object out of position 2 Answers
Parent rigidbody using its childrens colliders. Should it work or am I stupid? 2 Answers
handling collision with two objects of the same tag 1 Answer
Substitute of collision 2 Answers