Forum Discussion
saviornt
12 years agoProtege
Audio Source Array attached to camera
Good morning, after a long night of research, I have come to the community for guidance / help on this :( The idea is pretty straight forward, attach multiple audio sources to the player's camera...
vajra3d
12 years agoHonored Guest
Your problem is here:
" onTriggerEnter" should be "OnTriggerEnter"
Also, if you do something like this then it will print to the console the name of the gameObject that has triggered the collider if indeed it is triggering it at all:
A better option in your case might be to use OnTriggerStay instead.
Also, for something like this I would highly recommend avoiding a standard box collider and instead using a mesh collider with a cube attached to it and then setting it to "convex". This will make sure that the "trigger" collider object stays updated after the player has entered the trigger zone area. Otherwise it will just trigger it once on the initial contact and then switch itself back to the un-triggered state.
Hope that helps and good luck!
" onTriggerEnter" should be "OnTriggerEnter"
Also, if you do something like this then it will print to the console the name of the gameObject that has triggered the collider if indeed it is triggering it at all:
function OnTriggerEnter (other : Collider) {
print (other.collider.name);
}A better option in your case might be to use OnTriggerStay instead.
Also, for something like this I would highly recommend avoiding a standard box collider and instead using a mesh collider with a cube attached to it and then setting it to "convex". This will make sure that the "trigger" collider object stays updated after the player has entered the trigger zone area. Otherwise it will just trigger it once on the initial contact and then switch itself back to the un-triggered state.
Hope that helps and good luck!
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 1 year ago
- 11 months ago
- 2 years agoAnonymous
- 2 years ago