I'm building a network of linear splines that are using connections to tie the splines together.
At connection points, the user can choose to go left or right or straight ahead if possible.
I have this working reliably when the current spline, and the spline switched to, is going in the same direction.
If the SplineController is moving at a negative speed (i.e. going backwards on the spline) and switches to a spline where it needs to go forward, an OnControlPointReached event for the first control point of the new spline is immediately raised and the new spline is not followed.
If the SC is going forwards and switches to a spline going forward, or backwards to backwards, no event is raised and the spline correctly follows the new spline.
I am unsure if I am doing something wrong here, or if this behaviour is simply not supported out of the box?
Best regards
Christian
At connection points, the user can choose to go left or right or straight ahead if possible.
I have this working reliably when the current spline, and the spline switched to, is going in the same direction.
If the SplineController is moving at a negative speed (i.e. going backwards on the spline) and switches to a spline where it needs to go forward, an OnControlPointReached event for the first control point of the new spline is immediately raised and the new spline is not followed.
If the SC is going forwards and switches to a spline going forward, or backwards to backwards, no event is raised and the spline correctly follows the new spline.
I am unsure if I am doing something wrong here, or if this behaviour is simply not supported out of the box?
Best regards
Christian