- Home /
LineRenderer or Particles
I'm trying to figure out the best way to go about making a Laser type weapon. Below are a couple examples:
http://images.eurogamer.net/assets/articles//a/2/1/2/4/5/0/a_med_02a.jpg.jpg
http://mmohut.com/wp-content/gallery/eve-online/eve-online-mining-laser.jpg
Now, they don't need to be that fancy. I would like some illusion of movement/modulation with the laser though. It will be a point to point effect using Raycast behind the scenes.
So what is the best way to go about this, LineRenderer or Particles?
Answer by poncho · Mar 03, 2011 at 03:05 PM
the best way as i think would be using both
the linerenderer would not need to be with lots of points just need 2, the one on the laser weapon position and the other where the raycast said it hit
LineRenderer linerender; linerender.SetVertexCount(2); linerender.SetPosition(0, Weapon.transform.position); linerender.SetPosition(1, (your RaycastHit).point);
and thats the laser beam and you can make a particle emitter on the point where the laser hit to make it look better not familiar with particles
hope this helps
Your answer
Follow this Question
Related Questions
Particles on a Line Renderer 0 Answers
How to stop linerender when it hits an object 2 Answers
Points attached to a prefab 0 Answers
Electric/Energy Particle System 0 Answers
Emit particles throughout a line/ray? 2 Answers