- Home /
Question by
wbakunis · Jun 08, 2014 at 02:45 AM ·
raycastwheel collidersupside-down
Forcing wheel collider face down.
I'm trying to make my vehicle drive even when upside down but i've noticed that once the wheel collider is facing up, the wheels no longer get torque. How can I keep the wheel collider raycasts facing down at all times?
Comment
Answer by oasisunknown · Jun 08, 2014 at 03:36 AM
is it possible in your code to just write a simple if statement that says if the direction of my ray is any direction I dont want it to be then explicitly set it to where I want it.
if (rayDirection <1 || rayDirection >1)
{
rayDirection = 1
}