08-23-2019, 10:09 PM
Hi,
I am not familiar with wheel collider, but from reading the documentation I see that it has a steerAngle property. This is what I think you should modify. At each frame, compute the angle between the car's front, and the spline's tangent, and apply that angle to the wheel collider.
Useful API methods:
- CurvySpline.GetTangent
- CurvySpline.GetNearestPointTF
See api.curvyeditor.com for more information
Let me know if you need something else
Have a nice day
I am not familiar with wheel collider, but from reading the documentation I see that it has a steerAngle property. This is what I think you should modify. At each frame, compute the angle between the car's front, and the spline's tangent, and apply that angle to the wheel collider.
Useful API methods:
- CurvySpline.GetTangent
- CurvySpline.GetNearestPointTF
See api.curvyeditor.com for more information
Let me know if you need something else
Have a nice day
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.