Sequence Stop
Description
The Sequence Stop is a data container used by the asset for the scheduling of forces; The Scheduler takes care of the scheduling via the Handle.
Although it is not mandatory that you use this information when scheduling the application of forces on an object, it is much easier to do so than to go through passing all the data manually.
Using Sequence Stops to schedule forces
To use a stop for scheduling forces:
Create a variable of type
SequenceStop
and set its values:
private void Start(){
//Create a stop that moves the object up for one second.
SequenceStop stop = new SequenceStop(1.0f, Vector3.up, default(Vector3), default(Vector3));
}
Invoke one of the scheduling functions from your object's Handle:
private void Update(){
//Play the stop.
handle.PlayStop(stop);
}
Last updated
Was this helpful?