Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to face forwards when going backwards
#4
Sorry, one more thing. I thought I had it working but not quite. How do I know which way a spline is facing? I need to know whether to flip a spline or not,  I had this code but turns out it's not right:

Code:
bool IsSplineForwards(CurvySpline spline)
{
    return spline.GetTangent(0.5f).z > 0;
}

thanks

John
Reply


Messages In This Thread
RE: How to face forwards when going backwards - by jh092 - 08-17-2020, 07:43 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  issues with face over lapping and generator ranges Mos Def 7 2,312 12-13-2020, 07:46 AM
Last Post: _Aka_
  Make GameObject Face towards Spline Path linkinballzpokemon 5 2,394 07-14-2020, 08:27 PM
Last Post: _Aka_
  UI Text move backwards/reverse along Spline Cloov 4 8,349 12-18-2016, 11:56 AM
Last Post: Jake
  [Question] Going backwards (SplineController) Warow 1 3,592 11-25-2016, 08:15 PM
Last Post: Jake

Forum Jump: