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.

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);
}

Check out the Motion Manager page for examples on how to subscribe an object, and get a Handle.

Last updated

Was this helpful?