|
I need help with turning on a particle system when the player gets close to it. I also need it to turn off when the player is out of its radius. javascript is how I am writing the code. I currently don't have a script written yet.
(comments are locked)
|
|
You will be using distance in an if conditional or use an isTrigger collider to trigger the event. On particle systems gameObjects script or with the trigger (This trigger is on the particle systems gameObject) The preferred method would be the latter using the trigger. It will be more efficient since the cpu will not need to continually calculate the distance between the particle system and the player. Let me know if you need help setting it up.
May 25 '12 at 05:48 AM
hijinxbassist
(comments are locked)
|
