Struct skeletal_animation::controller::TransitionCondition
[−]
[src]
pub struct TransitionCondition {
pub parameter: String,
pub operator: Operator,
pub value: f32,
}Representation of a condition to check for an AnimationTransition
Fields
parameter | The name of the controller parameter to compare with |
operator | The comparision operator to use |
value | The constant value to compare with the controller parameter value |
Methods
impl TransitionCondition
fn is_true(&self, parameters: &HashMap<String, f32>) -> bool
Returns true if the condition is satisfied