09-01-2016, 04:00 PM
is there a way to create one-way connections?
one-way connections
|
09-01-2016, 04:00 PM
is there a way to create one-way connections?
09-02-2016, 06:08 AM
The question is a bit misleading, because there is no real one-way/two-way logic present. I guess you meant the automatic connection following for Control Points having a FollowUp defined. To add your own logic to connections:
- bind to the OnControlPointReached event - when your eventhandler is called, check for a connection and apply your logic - Curvy reads the event parameter and act accordingly (e.g. you can switch to another spline etc.) See CurvyDefaultEventHandler.cs for some ideas. Jake
09-02-2016, 07:42 AM
thanks for your reply. i did it by checking the angle between segments (got it from CurvyDefaultEventHandler).
but i thought of a way of marking the control points in a connection so that if you switch splines you can not switch back. for example, i have two round orbits and one spline that connects them. i wanted my ship to go from lower orbit to the higher one and stay there.
09-04-2016, 09:57 AM
I recommend creating a Metadata class that holds that information and add it to the relevant ControlPoints. This way you can easily access that data in the OnControlPointReached event.
09-05-2016, 08:01 AM
|
« Next Oldest | Next Newest »
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Procedural Connections | Janooba | 3 | 7 |
10-23-2024, 02:53 PM Last Post: _Aka_ |
|
Connections doesn't work in split scenes | nehvaleem | 4 | 10 |
05-29-2024, 07:31 AM Last Post: _Aka_ |
|
Connections Problem | Juton | 3 | 17 |
03-06-2024, 10:41 AM Last Post: _Aka_ |
|
Are connections pooled? | Lupos | 1 | 4 |
05-09-2023, 09:18 AM Last Post: _Aka_ |