- Home /
simple question about onTriggerEnter
ok, soooo I have: a "floor tile" GameObject which has 3 components attached to it: a script with onTriggerEnter, a collider, and a collider with "is trigger" active.
So now it never ever registers any Trigger events unless i attach a 4 component Rigidbody to the tile. Why is that so?
Because the other GameObject triggering has a Rigidbody, and the trigger should be actiavted when the Object that Enter the trigger has a rigidbody not when the floortile itself has a Rigidbody. It says in the tutorial AND the Scripting API that just having the TriggerObject having a Rigidbody is enough.
Answer by Vandive · Apr 08, 2016 at 06:49 AM
What i know ridged bodys control the collision detection in unity and without one there is no collision detection. You can stop the ridged body from moving the object by locking all axises. The trick is to keep the amount of ridged body down for they can cause lag. If you are detecting if a player walks on a tile put the collision detection in the player and test for a tag or name "Tile" then get the colliders parent and script or whatever you want.
There is no way to do this without a ridging body unless you want to code your own collision detection script by hand. :)
Your answer
Follow this Question
Related Questions
Internal collisions 1 Answer
Swimming in Unity3D survival game 0 Answers
Hitting Collider,Not Being Effected ? 1 Answer
Mesh collide, terrain & object 1 Answer
how to check if one object is colliding with another 1 Answer