Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TF to world position
#1
I apologize if I missed a similar answer, but I can't figure this one out.

I want to find out the world position of a point of the spline that's identified by its TF.

My goal is to have an object more or less follow a spline, but without using the spline controller script.

My idea was to simply, do this:

[Image: Zhk8GPi.png]

- look for a point ahead of the object
- get the TF of that point on the spline using GetNearestPointTF
- find the world coordinates of that point (local coordinates would be ok since it's easy to transform to world coords using the splines world coordinates).

Thanks!
Reply


Messages In This Thread
TF to world position - by niuage - 02-24-2022, 12:07 PM
RE: TF to world position - by _Aka_ - 02-25-2022, 11:18 AM
RE: TF to world position - by niuage - 03-06-2022, 08:16 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Is there a way to get the position of each ControlPoint in spline by API? Chanon 1 2,139 06-07-2025, 09:44 AM
Last Post: _Aka_
  Getting Distance from a World Point zorksox 3 2,315 04-16-2024, 07:30 PM
Last Post: _Aka_
  Get position of all control points for a spline gekido 1 1,788 03-28-2024, 10:08 PM
Last Post: _Aka_
  Avoiding runtime GC allocations on control point position change Ell223 8 4,626 02-24-2024, 10:43 AM
Last Post: _Aka_

Forum Jump: