Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Switching splines and directions
#1
Question 
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
Reply


Messages In This Thread
Switching splines and directions - by Nalle - 01-27-2016, 11:04 AM
RE: Switching splines and directions - by Nalle - 01-27-2016, 02:21 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Connections Between Opposing Splines lockiidraws 1 401 12-04-2025, 02:14 PM
Last Post: _Aka_
  Spawn at start/ end of splines rickgplus 4 2,615 03-21-2025, 12:34 PM
Last Post: _Aka_
  Any performance 'hacks' for scene with lots of splines rickgplus 1 1,669 03-18-2025, 10:11 PM
Last Post: _Aka_
Smile Simple splines movement shills 3 2,965 02-26-2025, 09:40 AM
Last Post: _Aka_

Forum Jump: