Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
best way to rotate, change offset, and inset position of splinecontroller object
#2
Hi

1. and 2. If you go to CurvyControlle.ShowOffsetSection, and set its return value to true, you will have the offset feature always available. But the result might not be what you want. If that is indeed the case, you can either modify SplineController.ComputeTargetPositionAndRotation, or make your own controller that would inherit from SplineController and override its ComputeTargetPositionAndRotation method. In that method, the controller gets the spline data and returns the position and orientation the controlled object should have. By modifying this code, you can implement your custom behaviour.

3. Modifying ComputeTargetPositionAndRotation would be the solution for this too.

Did this help?
Have a nice day
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply


Messages In This Thread
RE: best way to rotate, change offset, and inset position of splinecontroller object - by _Aka_ - 01-17-2022, 01:39 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Get position of all control points for a spline gekido 1 6 03-28-2024, 10:08 PM
Last Post: _Aka_
  Avoiding runtime GC allocations on control point position change Ell223 8 18 02-24-2024, 10:43 AM
Last Post: _Aka_
  How could I get position in spline from "From" value in BuildRasterizedPath? Chanon 1 8 02-12-2024, 09:54 PM
Last Post: _Aka_
  Finding relative position across connected splines DekoGames 1 8 02-05-2024, 10:11 PM
Last Post: _Aka_

Forum Jump: