- Home /
Wheel Collider Skid Marks based on tag?
Hi.
I would like to enable/disable tire screech, tire marks and change the smoke color, when the car is on different surfaces. How can I detect if wheel is colliding with a certain tag? Or maybe there is a different solution? For instance, on asphalt i would like black skids and grey smoke, and on grass only brown skids, and on dirt brown smoke and brown skids.
Any ideas?
Answer by nt314p · Jun 22, 2015 at 07:25 AM
Make different gameobjects for each of the terrains and use onCollisionEnter to determine which gameobject (terrain)has collided with the wheel. Not sure how you would use tags to do this though.
Your answer
Follow this Question
Related Questions
A limit to the number of tags? 2 Answers
'Set property' for wheel colliders, cannot find stiffness 1 Answer
Tagging a prefab breaks my code? 0 Answers
Tag mask dropdown like Layer mask 1 Answer
Raycast isn't working when with tag 2 Answers