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

Utilities for effects. More...

Static Public Member Functions

static float GetCollisionIntensity (float3 velocity, float3 normal, float collisionNormalInfluence, CollisionType collisionType)
 Gets an intensity value for the collision, taking into account the collision normal.
 
static int GetArrayIndexForCollision (ArrayChunk arrayChunk, CollisionSelectionMode collisionSelectionMode, float normalizedValue, ref Random random)
 Gets the appropriate array index for a collision where an array of effects is used.
 

Detailed Description

Utilities for effects.

Member Function Documentation

◆ GetArrayIndexForCollision()

static int ImpactCFX.EffectUtility.GetArrayIndexForCollision ( ArrayChunk  arrayChunk,
CollisionSelectionMode  collisionSelectionMode,
float  normalizedValue,
ref Random  random 
)
static

Gets the appropriate array index for a collision where an array of effects is used.

Parameters
arrayChunkThe array chunk corresponding to the effect items.
collisionSelectionModeHow an item from the array should be selected.
normalizedValueNormalized value for getting an item from the array.
randomRandom number generator.
Returns
An index based on the given array chunk and other parameters.

◆ GetCollisionIntensity()

static float ImpactCFX.EffectUtility.GetCollisionIntensity ( float3  velocity,
float3  normal,
float  collisionNormalInfluence,
CollisionType  collisionType 
)
static

Gets an intensity value for the collision, taking into account the collision normal.

Parameters
velocityThe collision velocity.
normalThe collision normal.
collisionNormalInfluenceHow much influence the collision normal has on the resulting intensity.
collisionTypeThe type of collision.