Premium Features

Download Video

How to Code: Particle Tunnels

Published 4 years ago

To achieve the effect of particles expanding outwards in ring formation, you need to know a little bit of trigonometry. The real question is, "How do you get particles to be placed evenly along the edge of a circle?" By using sine and cosine functions, you can return coordinates for each particle, where if you're increasing the radian value that goes into sine and cosine over time, you get different locations along a circle's edge. Using these values as a particles velocity, you can create a ring expansion effect, where if used correctly, gets the end result we're looking for.

Comments

Want to participate?

Create a free Chris Courses account to begin

Login
Snigafurt posted 3 years ago
0
chris posted 3 years ago
1

Providing the lift to launch your development career

ยฉ 2024 Chris Courses. All rights reserved.