Behavior : Speed clamp
Author:Rex.Rainbow
- Clamp speed between upper and lower bounds.
Download
Properties
Activated
- Enable if you wish this to begin at the start of the layout.
Upper bound
- Upper bound of speed, in pixels per second.
Lower bound
- Lower bound of speed, in pixels per second.
Actions
Bounds
Action:Set upper bound
- Set upper bound of speed.
- Upper bound ( number ) : Upper bound of speed, in pixels per second.
Action:Set lower bound
- Set lower bound of speed.
- Lower bound ( number ) : Lower bound of speed, in pixels per second.
Setup
Action:Set activated
- Enable the object's speed clamp behavior.
- Activated ( Combo ) : Enable the behavior.
Expressions
Bounds
Expression:UpperBound
- Upper bound of speed, in pixels per second.
Expression:LowerBound
- Lower bound of speed, in pixels per second.
Speed
Expression:CurSpeed
- Get current speed, in pixels per second.
Conditions
Hit
Condition:On hit upper bound
- Triggered when speed hit upper bound.
Condition:On hit lower bound
- Triggered when object hit lower bound.