Impact CFX API 1.3.0
Comprehensive API documentation for Impact CFX - Collision Effects System
|
Global class for managing and interfacing with the active impact instance. More...
Static Public Member Functions | |
static void | SetInstance (ImpactCFXManager collisionEffectProcessor) |
Sets the active impact manager instance. | |
static void | RegisterMaterials (ImpactMaterialRegistry materials) |
Registers a list of materials from a registry with the impact manager to convert them into data structures suitable for use in jobs. | |
static void | RegisterMaterials (IEnumerable< ImpactMaterialAuthoring > materials) |
Registers a list of materials with the impact manager to convert them into data structures suitable for use in jobs. | |
static void | RegisterMaterial (ImpactMaterialAuthoring material) |
Registers a single material with the impact manager to convert it into data structures suitable for use in jobs. | |
static void | ClearAllRegistered () |
Completely disposes of and destroys all material and effect data and objects currently registered in the impact manager. | |
static void | FindObjectsAndRegisterMaterials () |
Finds all Impact Objects in the active scene and forces them to register their materials. | |
static bool | CanQueueCollision (CollisionType collisionType, int materialCount) |
Does the impact manager have the capacity to queue a collision of the given type? This is useful to abort early to save processing. | |
static void | QueueCollision (IImpactObject triggerObject, IImpactObject hitObject, ImpactContactPoint contactPoint, CollisionType collisionType, int triggerObjectMaterialCount, int hitObjectMaterialCount, CollisionVelocityMethod collisionVelocityMethod) |
Queues a collision between 2 objects when the other object has an impact object component. | |
static void | QueueCollision (IImpactObject triggerObject, ImpactObjectData hitObjectData, ImpactContactPoint contactPoint, CollisionType collisionType, int triggerObjectMaterialCount, CollisionVelocityMethod collisionVelocityMethod) |
Queues a collision using basic data for the object that was hit. | |
static void | QueueCollision (ImpactObjectData triggerObjectData, IImpactObject hitObject, ImpactContactPoint contactPoint, CollisionType collisionType, int hitObjectMaterialCount, CollisionVelocityMethod collisionVelocityMethod) |
Queues a collision using basic data for the object triggering the collision. | |
static bool | TryGetEffectProcessor< T > (out T effectProcessor) |
Try to get the effect processor of the given type. | |
static bool | TryGetMaterialProcessor< T > (out T materialProcessor) |
Try to get the material processor of the given type. | |
static void | ResetAllEffectProcessors () |
Resets all effect processors controlled by the active manager instance. | |
Global class for managing and interfacing with the active impact instance.
|
static |
Does the impact manager have the capacity to queue a collision of the given type? This is useful to abort early to save processing.
collisionType | The collision type. |
materialCount | The number of materials that will need to be processed for the collision. |
|
static |
Queues a collision between 2 objects when the other object has an impact object component.
triggerObject | The object that triggered the collision. |
hitObject | The object being collided with. |
contactPoint | The contact point of the collision. |
collisionType | The type of collision. |
triggerObjectMaterialCount | The number of materials to get for the object that triggered the collision. |
hitObjectMaterialCount | The number of materials to get for the object that was hit. |
collisionVelocityMethod | The method to use for calculating the collision velocity. |
|
static |
Queues a collision using basic data for the object that was hit.
triggerObject | The object that triggered the collision. |
hitObjectData | Basic data for the object being collided with. |
contactPoint | The contact point of the collision. |
collisionType | The type of collision. |
triggerObjectMaterialCount | The number of materials to get for the object that triggered the collision. |
collisionVelocityMethod | The method to use for calculating the collision velocity. |
|
static |
Queues a collision using basic data for the object triggering the collision.
triggerObjectData | Basic data for the object that triggered the collision. |
hitObject | The object being collided with. |
contactPoint | The contact point of the collision. |
collisionType | The type of collision. |
collisionVelocityMethod | The method to use for calculating the collision velocity. |
|
static |
Registers a single material with the impact manager to convert it into data structures suitable for use in jobs.
material | The material being registered. |
|
static |
Registers a list of materials with the impact manager to convert them into data structures suitable for use in jobs.
materials | The materials being registered. |
|
static |
Registers a list of materials from a registry with the impact manager to convert them into data structures suitable for use in jobs.
materials | The material registry containing the materials to be registered. |
|
static |
Try to get the effect processor of the given type.
T | The type of effect processor. |
effectProcessor | The effect processor that was found, if any. |
T | : | ImpactEffectProcessorBase |
|
static |
Try to get the material processor of the given type.
T | The type of effect processor. |
materialProcessor | The material processor that was found, if any. |
T | : | ImpactMaterialProcessorBase |