Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Control point rotation
#4
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?
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
  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_
Exclamation bad rotation aloriza 5 14 11-29-2023, 09:52 AM
Last Post: _Aka_

Forum Jump: