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
  Spline Issue Leading to Unity Freeze Pankaj09 1 101 08-24-2026, 11:28 PM
Last Post: _Aka_
  Spline Spots from 2 samples. BitBlit 8 1,001 06-30-2026, 11:49 AM
Last Post: _Aka_
  Best way to duplicate a spline with an offset Kapistijn 8 2,368 04-12-2026, 03:18 PM
Last Post: _Aka_
Smile Constant speed along a spline? tfishell 1 969 11-13-2025, 11:32 AM
Last Post: _Aka_

Forum Jump: