05-30-2018, 11:09 PM
I've got a question about moving spline controllers attached to splines, which are in turn moved by a parent transform. The basic scene hierarchy is as follows:
-splineController
-parentGameObject
|-splineA
|-splineB
|-splineC
Note, the splineController is not a descendant of the parentGameObject. The controller starts off on splineB, and splineB is connected to splineA and splineC at either end. If I move the parentGameObject, all the splines and the spline controller move as expected. So far, so good.
Now, if the connections at each end of splineB are deleted, making splineB isolated from the other two splines, yet still a child of parentGameObject, things stop working as expected. The controller now does not move when the parentGameObject's transform is moved, however, it does seem to move if the parentGameObject transform rotation is changed, but not position.
My ultimate application is essentially multiple floors with a set of elevators. Each floor has a series of splines as does each elevator platform. When an elevator arrives at a particular level, it is connected to the spline at that level. A controller can now be driven from the level onto the elevator platform. When a platform is moved it is disconnected from the static spline at the starting floor, and stays with the elevator platform(parent game object), until it arrives at some other floor, at which time it is reconnected to another spline and the controller can depart.
I'm currently using Curvy v2.1.3, however, there was no difference when upgrading to the latest version.
-splineController
-parentGameObject
|-splineA
|-splineB
|-splineC
Note, the splineController is not a descendant of the parentGameObject. The controller starts off on splineB, and splineB is connected to splineA and splineC at either end. If I move the parentGameObject, all the splines and the spline controller move as expected. So far, so good.
Now, if the connections at each end of splineB are deleted, making splineB isolated from the other two splines, yet still a child of parentGameObject, things stop working as expected. The controller now does not move when the parentGameObject's transform is moved, however, it does seem to move if the parentGameObject transform rotation is changed, but not position.
My ultimate application is essentially multiple floors with a set of elevators. Each floor has a series of splines as does each elevator platform. When an elevator arrives at a particular level, it is connected to the spline at that level. A controller can now be driven from the level onto the elevator platform. When a platform is moved it is disconnected from the static spline at the starting floor, and stays with the elevator platform(parent game object), until it arrives at some other floor, at which time it is reconnected to another spline and the controller can depart.
I'm currently using Curvy v2.1.3, however, there was no difference when upgrading to the latest version.