Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Star Fox Style controls with Curvy Path
#3
(01-17-2014, 07:30 AM)'Jake' Wrote: Hi,

have you tried setting localRotation instead of rotation?


 

Thanks for the reply, you were right.

Changing 


Code:
transform.rotation = Quaternion.RotateTowards(transform.rotation,Quaternion.LookRotation(finalDirecti​on),Mathf.Deg2Rad*angleChangeSpeed);
to


Code:
transform.localRotation = Quaternion.RotateTowards(transform.localRotation,Quaternion.LookRotation(finalDirecti​on),Mathf.Deg2Rad*angleChangeSpeed);
has fixed the problem. I think I'd been trying to get too clever and thinking I somehow needed to get a rotation/position from the spline.

Thanks again for replying and helping me out.

 

 
Reply


Messages In This Thread

Possibly Related Threads…
Thread Author Replies Views Last Post
  Rasterized Path Range issue proton 7 23 04-30-2024, 11:17 AM
Last Post: _Aka_
  Incorrect mesh alignment after extrusion on curved path Thinkurvy 10 21 04-17-2024, 10:57 AM
Last Post: _Aka_
  Curvy Line Renderer for UI Spline? gekido 3 6 04-04-2024, 12:56 PM
Last Post: _Aka_
  8.8.0 is live, and it improves Curvy Generator greatly _Aka_ 1 10 04-03-2024, 03:16 PM
Last Post: _Aka_

Forum Jump: