Utilities for effects.
More...
◆ GetArrayIndexForCollision()
Gets the appropriate array index for a collision where an array of effects is used.
- Parameters
-
| arrayChunk | The array chunk corresponding to the effect items. |
| collisionSelectionMode | How an item from the array should be selected. |
| normalizedValue | Normalized value for getting an item from the array. |
| random | Random 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
-
| velocity | The collision velocity. |
| normal | The collision normal. |
| collisionNormalInfluence | How much influence the collision normal has on the resulting intensity. |
| collisionType | The type of collision. |