- Home /
Question by
D43DB33F · Jul 17, 2017 at 04:03 PM ·
wheelcolliderwheelspinparticleemitterslip
Adjusting tire smoke particle emitter based on wheel slip
Hello ! I have made a car using WheelCollider's and added a particle emitter for tire smoke on each wheel. Problem is, the emitters are constantly emitting a constant amount of smoke. I would like them to emit smoke proportionally to how much the associated wheel is slipping, i.e the different between the speed of the tire surface, and the road in contact with it.
Do I have to manually compute that "slipping" manually or is Unity already providing something similar ? The WheelCollider class doesn't seem to contain the info I would like (other than RPM, radius, etc).
Thanks for your help !
Comment
Best Answer
Answer by D43DB33F · Jul 17, 2017 at 04:38 PM
Ok I spoke too fast. Here are the information I needed :
WheelHit wheelHit;
wheelCollider.GetGroundHit(out wheelHit);
Your answer
![](https://koobas.hobune.stream/wayback/20220612130459im_/https://answers.unity.com/themes/thub/images/avi.jpg)