API

Fields

Field

Description

stayTime

Amount of time that the forces in this stop will be applied for.

position

Velocity applied to change the object's position.

rotation

Velocity applied to change the object's rotation.

scale

Velocity applied to change the object's scale.

AddMultiplier

POST AddMultiplier(float multiplier)

Invoking this method will allow you to multiply the forces inside of the stop by a floating point value, this is useful when wanting to add light modifications to them based on the situation.

Path Parameters

Name
Type
Description

Multiplier

number

Value that we are multiplying the forces inside of the stop by.

[SerializeField]
private SequenceStop stop;

private void Update(){
    float multiplier = 1f;
    if(isFalling){
        multiplier = 10f;
    }
    
    stop.AddMultiplier(multiplier);
}

Last updated

Was this helpful?