Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Wheel Collider to propel along Spline
#3
(08-23-2019, 10:09 PM)_Aka_ Wrote: 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

Thanks for the response, getting back to this so late because I keep jumping on and off this project for other things, looking at it again just now.

I was looking at the RigidBody example with the controllable ball on a ramp and I was wondering whether you could make any suggestions on how to clamp a RigidBody directly to a spline, if that's the right word for it, while still allowing RigidBody physics to still apply? I've been trying a few things such as based off the RigidBody example but without much luck so far. I'm having some trouble wrapping my head around all the API options as I'm still new to all the maths and the terms that goes into this kind of solution.

Also, just wondering, are there any plans to adapt CurvySpline to ECS? I know it's still pretty early but just wondering if that's been looked into at all yet since it is the (kind of distant) future of Unity.

Thanks again.
Reply


Messages In This Thread
RE: Wheel Collider to propel along Spline - by Phunyun - 01-18-2020, 07:14 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Curvy Line Renderer for UI Spline? gekido 3 6 04-04-2024, 12:56 PM
Last Post: _Aka_
  Get position of all control points for a spline gekido 1 6 03-28-2024, 10:08 PM
Last Post: _Aka_
Bug Changing spline connection in inspector causes splines to revert to defaults lacota 3 6 03-18-2024, 07:55 PM
Last Post: _Aka_
  GO can't fit end of the spline GameDeveloperek4123 3 14 03-04-2024, 11:06 AM
Last Post: _Aka_

Forum Jump: