Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
locking vertical orientation/alignment
#3
(02-17-2021, 11:05 AM)_Aka_ Wrote: Hi
Right now controllers can't follow a path only on specific translation/rotation dimensions. That's a feature that I am planning to include in the next major update. Until then, you can implement a solution to your specific use case by inheriting from the Spline Controller class. Override the ComputeTargetPositionAndRotation method by making sure the computed up vector is ignored and replaced by the locked y direction you want. Do you see what I mean?


Thank you for your reply !

I just had a look into the controller script, and found it starting at line 537 -
but I am pretty new to coding so might take me a while to find the 
lines that I would have to change and how, but will try.

The reason for wanting to constrain the vertical orientation is that the machine takes off quite steeply, 
which tilts it and is a bit uncomfortable when you are inside in VR!

Regards, 
Ben
Reply


Messages In This Thread
RE: locking vertical orientation/alignment - by BenStorch - 02-17-2021, 12:47 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Incorrect mesh alignment after extrusion on curved path Thinkurvy 10 21 04-17-2024, 10:57 AM
Last Post: _Aka_
  Shapes points orientation itsGama 3 8 01-18-2023, 02:51 PM
Last Post: _Aka_
  2d - orientation looping_co 1 5 09-01-2022, 04:17 PM
Last Post: _Aka_
  Spline controller orientation itsGama 4 31 01-24-2022, 06:38 PM
Last Post: _Aka_

Forum Jump: