- Home /
Issue with moving OnTrigger into something
I'm working on a placement grid that turns red when something is in the grid way and green when nothing is there. While this work with something is move on to the grid, if the grid is move on to something nothing happens.
Details? $$anonymous$$ore. What have you used? Or what are you intending to use?
for the grid i'm using a plane game object with a box collider attach set to trigger. At the moment it has 6 empty game object attach to it for placing things within the grid.
Answer by Berenger · May 02, 2012 at 02:19 PM
The trigger event is raised when the rigidbody creates a movement that makes the object's collider penetrate the trigger's collider. I suspect that in your case, the objects have a rigidbody or character controller and the grid doesn't. Try adding a kinematic rigidbody to your grid, disable gravity and freeze all movements and rotations, it should work.
Your answer
![](https://koobas.hobune.stream/wayback/20220613071007im_/https://answers.unity.com/themes/thub/images/avi.jpg)