Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem with dynamically moving a sprite along a curve
#5
Problem solved by mail:

The easiest way to orient a 2D sprite to a spline path is


Code:
transform.rotation = Quaternion.LookRotation(Vector3.forward,spline.GetTangentFast(tf));

Jake
Reply


Messages In This Thread

Possibly Related Threads…
Thread Author Replies Views Last Post
  Filling a closed spline dynamically rickgplus 1 2,135 04-16-2025, 08:56 AM
Last Post: _Aka_
  Morph game object along curve. mikechr2000 5 2,979 02-04-2025, 09:30 PM
Last Post: _Aka_
Photo Volume Spots problem with spacing Bond007 3 2,511 01-20-2025, 12:27 PM
Last Post: _Aka_
  Scaling a closed curve rickgplus 1 1,454 01-16-2025, 06:52 PM
Last Post: _Aka_

Forum Jump: