Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Spawning object with correct rotation at spline end
#3
(05-21-2019, 12:35 PM)_Aka_ Wrote: I am writing this from the top of my head, it might have some minor errors:
Quaternion.LookAt(spline.GetTangent(1))

This did the trick! The line needs to be written "Quaternion.LookRotation(DestinationSpline.GetTangent(1))" and not LookAt. That's all and it worked.
Reply


Messages In This Thread
RE: Spawning object with correct rotation at spline end - by arrnav96 - 05-21-2019, 02:19 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Curvy Line Renderer for UI Spline? gekido 1 1 Yesterday, 10:12 PM
Last Post: _Aka_
  Get position of all control points for a spline gekido 1 2 Yesterday, 10:08 PM
Last Post: _Aka_
Bug Changing spline connection in inspector causes splines to revert to defaults lacota 3 6 03-18-2024, 07:55 PM
Last Post: _Aka_
  GO can't fit end of the spline GameDeveloperek4123 3 13 03-04-2024, 11:06 AM
Last Post: _Aka_

Forum Jump: