|
heres my script i have it attached to my door but when i walk onto my door (its at an angle) nothing happens except one time it worked, do i have to specify what it is colliding with?
(comments are locked)
|
|
Try doing: It's a bit confusing to name the Collision "other" as it is a reference to the collision, not the other object. The trigger Collider is on the other hand a reference to the entering object.
Sep 12 '11 at 10:41 AM
save
(comments are locked)
|
|
I would use tags for this one. Also dont forget to add the script to the trigger object and Player should have "Rigid Body" physics.
(comments are locked)
|

try to change your variable name Collision
what variable?
Collision: Collision => hit:Collision