Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to know when I'm on a control point
#1
Is there a way to query a spline and ask if I'm near a control point at a given FT? I see if I use a SplineController, I can set up OnControlPointReached. While thats interesting, it would be helpful to know which control point I hit. 

I am actually thinking of creating my own spline controller, however. The one shipped with Curvy is missing some basic needs I have. I need do lots of interpolation using tweening with ease in/out. I was hoping to use the control points as way points to put pickups.

Any guidance with this would be appreciated.

BTW. As a newbie to your product, it would have been helpful if you made a few pages of basic scripting examples. While I appreciate the examples shipped with the product. Sometimes, its difficult to "find the nut" of the problem through all the fluff of the example.

Here's how basic those examples can be:

How to get back position from a spline:
Vector3 position = yourspline.InterpolateFast( time );

How to get orientation from spline:
Quaternion orientation = yourspline.GetOrientationFast( time );

Great product.
Reply


Messages In This Thread
How to know when I'm on a control point - by kloveridge - 10-14-2015, 02:50 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Control Point Interpolation Overrides. rickgplus 1 739 12-11-2025, 08:52 AM
Last Post: _Aka_
  12_Train junction point richardzzzarnold 5 3,800 04-16-2025, 02:19 PM
Last Post: _Aka_
  OnAfterControlPointAdded - Control Point is null jh092 5 3,533 02-04-2025, 09:31 PM
Last Post: _Aka_
  How to generate gameobject on the control point Yang Yi 1 1,779 12-10-2024, 10:14 PM
Last Post: _Aka_

Forum Jump: