Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
interpolate to nth control point
#1
I have a spline with a number of control points.  I can go from one control point to an adjacent control point via Interpolate(% progress, worldSpace).  Works fine. 

My initial take on going from CP0 => CP3 was getting CP3 control point & calling Interpolate from that CP.  What am I missing here?  Thanks. 

Code:
    
  var nextControlPoint = Spline.ControlPointsList[_icp+3];
  transform.position = nextControlPoint.Interpolate(percentCompletion, Space.World);
Reply


Messages In This Thread
interpolate to nth control point - by appropriate_ladder - 02-19-2021, 06:52 PM
RE: interpolate to nth control point - by _Aka_ - 02-22-2021, 08:27 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Getting Distance from a World Point zorksox 3 5 04-16-2024, 07:30 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_
  Avoiding runtime GC allocations on control point position change Ell223 8 18 02-24-2024, 10:43 AM
Last Post: _Aka_
  Connection "next' control point jh092 3 15 11-22-2023, 11:47 AM
Last Post: _Aka_

Forum Jump: