Impact CFX API 1.5.0
Comprehensive API documentation for Impact CFX - Collision Effects System
Loading...
Searching...
No Matches
ImpactCFX.EffectVelocityModifier Class Reference

Class for editing effect modifiers based on velocity. More...

Public Member Functions

float Evaluate (float velocity)
 Evaluates the modifier multiplier using the given velocity.
 

Public Attributes

bool Enabled
 Is this modifier enabled?
 
Range VelocityRange = new Range(1, 10)
 The velocity range to compare the collision velocity against.
 
AnimationCurve Curve = AnimationCurve.Linear(0, 0, 1, 1)
 The curve used to evaluate the modifier.
 

Detailed Description

Class for editing effect modifiers based on velocity.

Member Function Documentation

◆ Evaluate()

float ImpactCFX.EffectVelocityModifier.Evaluate ( float  velocity)

Evaluates the modifier multiplier using the given velocity.

Parameters
velocityThe velocity value.
Returns
A value based on evaluating the curve.