Car Drift smoke


Hello everyone! I’m making a top-down race, and I want to add smoke from the wheels when I drift. How can I make it so that when there’s a difference of, say, 10 degrees between the speed angle and the car angle, particles appear? I’ll deal with the particles myself, but I need to understand the principle of finding the angle.

There is expression to check angle difference
And you could just create 2 particle emitters when that difference is above 10°
And delete them when angle is below

NOW you would also need to set angle of particles to be -180 to car angle

ASSUMING you car as image by default is facing right

SO for example you change angle of emitters to Car.Angle()-180
And that would be pretty much it

In case you are new
You would make event to check in condition if angle difference is above 10°
Now to that event you make 2 sub events
In first in condition you add trigger once and here you need to create 2 particle emitters
in 2nd sub event you do not add any condition
You just change position of each particle emitter to each wheel or whereever you want
And their angle to Car.Angle()-180
BUT maybe that is not what you want maybe it would need to be Car angle of velocity like where he is moving and not where he is facing
This is something you will need to play around

So like angle of movement

2 Likes

If there is a button that you press to drift you could just bind the particles to that button and a speed check. Make it seem like its activated by the drift rather than actually building a system that checks for a drift.