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
  Avoiding runtime GC allocations on control point position change Ell223 8 18 02-24-2024, 10:43 AM
Last Post: _Aka_
Exclamation bad rotation aloriza 5 13 11-29-2023, 09:52 AM
Last Post: _Aka_
  Connection "next' control point jh092 3 15 11-22-2023, 11:47 AM
Last Post: _Aka_
  Spline.Length not updated unless I add a point to spline (or modify it) first. _RicO 3 6 08-26-2023, 08:41 AM
Last Post: _Aka_

Forum Jump: