Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Control point rotation
#5
(03-22-2016, 10:03 PM)Jake Wrote: Can you please compare the ship's orientation in relation to the spline's orientation (yellow lines, you can increase line size in the preferences!)? They're too small to see it clearly on the image.

What perhaps adds confusion is that the up-vector always is perpendicular to the tangent(direction) of the spline. It can only rotate around the tangent at a given position. Usually this is what people expect when moving objects along a spline.

If that's not what you want, you can create a custom controller and override the ApplyTransformRotation() method. E.g. you can find the last and next CP there and lerp between their rotation etc...

Does that help?

Yes I need to create  custom controller then as I don't want it to rotate around the tangent of the spline.  Could I ask if there is a function to call to find my relative position between two points on the spline?  E.g.  A function that returns that I am  .X% along the current spline segment?  If so I can get this working quickly.

Thanks!
Reply


Messages In This Thread
Control point rotation - by hoesterey - 03-16-2016, 08:32 PM
RE: Control point rotation - by Jake - 03-18-2016, 08:23 PM
RE: Control point rotation - by hoesterey - 03-20-2016, 10:01 PM
RE: Control point rotation - by Jake - 03-22-2016, 10:03 PM
RE: Control point rotation - by hoesterey - 03-23-2016, 04:46 PM
RE: Control point rotation - by Jake - 03-26-2016, 08:10 AM

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

Forum Jump: