Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
LODs
#9
(03-23-2021, 02:59 PM)digot Wrote: Is it possible to have one controller which moves through the spline while having another controller which is linked to the main controller and being "pulled" by it? I know the train example scenes but if I understand trains correctly then for example at a curve the train has to have different wheel speeds at front and rear axis else the train wouldn't be able to maintain the same length and break apart, which would mean that I can't just use two SplineControllers with the same speed. Is it possible to replicate this behaviour without physics using controllers?
Well, maybe I am seeing things way simpler than what they are, but I believe that the solution is having a script that will every frame do the following:
Code:
controller2.AbsolutePosition = controller1.AbsolutePosition + distance;

(03-23-2021, 02:59 PM)digot Wrote: Also a little feature request: After using SplineController.TeleportBy I want to know the MovementDirection of the controller after the teleport and not have it changed backed to the original one. It's at CurvyGenerator.cs line 1027 in my version, I have commented it out for now on my computer, but could you maybe add an optional flag which specifies whether the MovementDirection should be retained or reset?
I don't feel like this needs a change in Curvy's API, you can just call TeleportTo, then follow it by
Code:
controller.MovementDirection = oldPosition < controller.Position
                ? MovementDirection.Forward
                : MovementDirection.Backward;
Sure having a new Teleport method including the line above would be useful for you, but in an effort to keep the API as simple (and thus easier to use) possible, I avoid adding new methods if all what they do is simply to call other public methods/properties.
Is my answer satisfying?
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
LODs - by digot - 03-20-2021, 07:41 PM
RE: LODs - by _Aka_ - 03-21-2021, 07:06 PM
RE: LODs - by digot - 03-21-2021, 07:59 PM
RE: LODs - by _Aka_ - 03-22-2021, 09:19 AM
RE: LODs - by digot - 03-22-2021, 01:21 PM
RE: LODs - by _Aka_ - 03-22-2021, 05:27 PM
RE: LODs - by digot - 03-23-2021, 02:59 PM
RE: LODs - by _Aka_ - 03-26-2021, 08:35 PM
RE: LODs - by _Aka_ - 03-25-2021, 05:28 PM
RE: LODs - by digot - 03-28-2021, 03:52 AM
RE: LODs - by _Aka_ - 03-29-2021, 09:20 AM
RE: LODs - by digot - 04-04-2021, 01:49 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Deforming prefabs with LODs along a spine LiveWire 0 2 11 hours ago
Last Post: LiveWire

Forum Jump: