Hello, I’m quite new user to Unity and I have a problem when trying to select objects. I have a simple cube with a box collider marked as a trigger, and that cube has following script:
function OnTriggerEnter( other : Collider )
{
print( "Hello World!" );
}
Then I have the default First Person Controller which I modified a bit. I’ve tried to add a box collider component to both camera and the controller, marked it as a trigger and positioned and resized it so that it resembles a hand coming straight out of the camera.
The problem is that the cube does not react to the hand, it will only print “Hello World!” when the first person controller (the capsule) touches the cube. Why? I have two triggers touching each other (the hand and the cube) but they won’t react. Doesn’t feel right.
Here’s a screenshot: