- Home /
Question by
FuriousCreeper · Jan 13, 2019 at 05:11 PM ·
resources.loadfallwheels
System who put back on wheels a vehicle
Hello !
I am creating a cannon cart simulator and i noticed something : the vehicle often falls of its wheels ! What i would like is that when you press a button (UI), the vehicle gets back on its wheels.
Someone can help me ?
Comment
Answer by sh_code · Jan 13, 2019 at 08:47 PM
make the vehicle's transform.up equal Vector3.up (which is the global world's upwards direction)
to be more precise, rotate the vehicle so that its transform.up is equal to Vector3.up
Can you be more precise if possible ? (Scripts,gameobjects required...)