- Home /
Orienting particles based on velocity
Hi,
I would like to have some particles emited from a center (emisor) towards all directions (360 degrees). This can be done pretty easily, the problem is when I want to orient each particle based on the velocity vector. An example of what I need can be seen in this video when squares are destroyed: https://www.youtube.com/watch?v=8hsOQ5GOVRk
Cheers.
Answer by m4c0 · Mar 12, 2015 at 10:40 PM
In my tests, a Particle System with Renderer's "Render Mode" set to "Stretched Billboard" does something similar to your needs:
Ok, this does what I need changing scale to 1. This one was really hidden :/. Thanks for the tip
How would this orientation be applied to a mesh particle? Is it possible via code?
@teriansilva In a nutshell, it's a matter of grabbing every particle every frame (or every late update) and apply the correct rotation (probably using Transform.lookAt
). But that will be very CPU-intensive.