This page looks best with JavaScript enabled

Creating Sparking Collision Trails - Lets Make Asteroids VR

 ·   ·  ☕ 1 min read

Expanding on what we were working on yesterday we’re going to be adding a spark particle effect to our bomb’s spike. This means we’ll get a nice and simple sparking effect to happen when our bomb is dragged over something it can stick into. The effect is simple yet allows us to get some really good feedback on if our bomb will stick into an asteroid or not.

To accomplish this we’re going to move our particle system to the collision point and then make use of the ParticleSystem.Emit() function to emit new particles whenever we are colliding with an object. The overall effect is really simple to build and the results are fantastic. It’s a simple and effective solution to this problem.

The demo of endless mode is available for free on Game Jolt here:

The code is available on GitHub and you can browse it here:
Certain things are not included in the open source version.

Sam Wronski
Sam Wronski
Maker of things and professional software engineer. Lets make something awesome together!