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
  Maintaining vertical orientation of extruded meshes rickgplus 3 2,900 01-24-2025, 09:24 PM
Last Post: _Aka_
  Tunnel Colliders and Looping Meshes Petusarian 5 3,802 07-17-2024, 02:36 PM
Last Post: _Aka_
  Disable rebuild of meshes in dynamic mode Zilk1 3 2,707 05-27-2024, 08:14 AM
Last Post: _Aka_
  Adjust radius of generated mesh via script? Shackman 1 1,661 03-26-2024, 01:12 PM
Last Post: _Aka_

Forum Jump: