Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to calculate curvature of spline
#1
Hi there,

Please can you help, I'm trying to create a spline between two points but with a certain curvature. This would be at runtime (if that matters).

My example, suppose I have a curved train track piece. I know the start point of the piece, and I know the end point of the piece, and I know the radius or curve of the piece. How then would I "bend" my spline so it connects the start/end points and matches the curve of the track piece?

I don't think I can use Conform Path because the collider is a box collider around the whole piece so it doesn't match the size or curve of the piece.

Thank you for your time

John
Reply


Messages In This Thread
How to calculate curvature of spline - by jh092 - 07-29-2020, 08:14 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Kinematic object on spline Dayus 3 47 11-23-2020, 07:38 PM
Last Post: _Aka_
  Getting MissingReferenceException from the component pool when I destroy a spline Excrubulent 5 111 11-22-2020, 11:38 AM
Last Post: _Aka_
  Generate Mesh Spline from GameObject processor 4 288 10-01-2020, 11:00 AM
Last Post: _Aka_
  Generated mesh using bezier spline is not following the path accurately processor 3 369 08-25-2020, 04:39 PM
Last Post: _Aka_

Forum Jump: