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
  Is it possible to make the face at the end of mesh? Chanon 3 2,316 11-14-2024, 04:38 PM
Last Post: _Aka_
  issues with face over lapping and generator ranges Mos Def 7 6,213 12-13-2020, 07:46 AM
Last Post: _Aka_
  Make GameObject Face towards Spline Path linkinballzpokemon 5 5,116 07-14-2020, 08:27 PM
Last Post: _Aka_
  UI Text move backwards/reverse along Spline Cloov 4 11,418 12-18-2016, 11:56 AM
Last Post: Jake

Forum Jump: