Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
InfiniteTrack example: generated meshes orientations not aligned
#6
I've narrowed down the issue a bit.  Here's what the issue looks like  https://streamable.com/06fwn  Notice the unaligned meshes between generators.  The problem gets worse the longer it runs.  

Here I modified CurvySpline_private.cs:1109 

Code:
//Vector3 nextControlPointInitialUp = currentOrientationAnchor.getOrthoUp0INTERNAL();

Vector3 nextControlPointInitialUp = currentOrientationAnchor.ApproximationUp[currentOrientationAnchor.ApproximationUp.Length -1];

https://streamable.com/p2b0r  notice the meshes are now aligned but the ship and camera no longer rotate properly.

Update: Scratch my fix. That changes makes the CurvySplineSegment.ApproximationUp array all zero vectors.
Reply


Messages In This Thread
RE: InfiniteTrack example: generated meshes orientations not aligned - by geekrelief - 01-16-2019, 10:00 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Adjust radius of generated mesh via script? Shackman 1 4 03-26-2024, 01:12 PM
Last Post: _Aka_
  Cant Generate Meshes At Runtime alms94 5 22 01-26-2024, 11:27 AM
Last Post: _Aka_
  Get spline from generated mesh beartrox 1 5 11-27-2023, 12:30 PM
Last Post: _Aka_
  Making "gaps" in the generated spline mesh VoltDriver 6 24 11-22-2023, 11:34 PM
Last Post: _Aka_

Forum Jump: