- Home /
Easy way to get every wheelcolliders hit data
is there a easy way to get all the wheelcolliders hit data. for example using a for loop and by the way i don't know how to use for loops so i will need a example or something. Thanks in advance
I'm trying to check what tag the wheelcollider is on for each wheel. if the wheel is on one surface, for example sand, it will emit dust from a particle emitter. sorry for not being clear what i'm trying to do in the post.
Answer by Mander · Aug 03, 2012 at 04:55 PM
just use the function OnColliderEnter and have ur particles change when entering a different area. if u r doing a driving car game or something and ur car is on mud.
make the particle mud start and when u enter another surface lets say water OnColliderEnter change to the other particles. real ez
accually i was wanting to have one script to controll and check all wheelcolliders