|
Impact CFX API 1.5.5
Comprehensive API documentation for Impact CFX - Collision Effects System
|
The primary manager of the entire Impact CFX system. More...
Classes | |
| class | CollisionTypeLimit |
| Defines a limit for a certain type of collision. More... | |
Public Member Functions | |
| void | RegisterMaterials (ImpactMaterialRegistry materials) |
| Registers a list of materials from a registry to convert them into data structures suitable for use in jobs. | |
| void | RegisterMaterials (IEnumerable< ImpactMaterialAuthoring > materials) |
| Registers a list of materials to convert them into data structures suitable for use in jobs. | |
| void | RegisterMaterial (ImpactMaterialAuthoring material) |
| Registers a single material to convert it into data structures suitable for use in jobs. | |
| void | ClearAllRegistered () |
| Completely disposes of and destroys all registered material and effect data and objects. | |
| void | FindObjectsAndRegisterMaterials () |
| Finds all Impact Objects in the active scene and forces them to register their materials. | |
| void | QueueCollision (IImpactObject triggerObject, IImpactObject hitObject, ImpactContactPoint contactPoint, CollisionType collisionType, int triggerObjectMaterialCount, int hitObjectMaterialCount, CollisionVelocityMethod collisionVelocityMethod, ImpactMaterialAuthoring triggerFallbackMaterial=default, ImpactTagMask hitFallbackTags=default) |
| Queues a collision between 2 objects. | |
| void | QueueCollision (IImpactObject triggerObject, ImpactObjectData hitObjectData, ImpactContactPoint contactPoint, CollisionType collisionType, int triggerObjectMaterialCount, CollisionVelocityMethod collisionVelocityMethod, ImpactMaterialAuthoring triggerFallbackMaterial=default) |
| Queues a collision using basic data for the object that was hit. | |
| void | QueueCollision (ImpactObjectData triggerObjectData, IImpactObject hitObject, ImpactContactPoint contactPoint, CollisionType collisionType, int hitObjectMaterialCount, CollisionVelocityMethod collisionVelocityMethod, ImpactTagMask hitFallbackTags=default) |
| Queues a collision using basic data for the object triggering the collision. | |
| void | QueueCollision (ImpactObjectData triggerObjectData, ImpactObjectData hitObjectData, ImpactContactPoint contactPoint, CollisionType collisionType, CollisionVelocityMethod collisionVelocityMethod) |
| Queues a collision using basic data for both the object triggering the collision and the object that was hit. | |
| bool | CanQueueCollision (CollisionType collisionType, int materialCount) |
| Can a collision of the given type be queued? | |
| bool | TryGetEffectProcessor< T > (out T effectProcessor) |
| Try to get the effect processor of the given type. | |
| bool | TryGetMaterialProcessor< T > (out T materialProcessor) |
| Try to get the material processor of the given type. | |
| void | ResetAllEffectProcessors () |
| Resets all effect processors controlled by this manager. | |
Properties | |
| bool | EnableCollisionProcessing [get, set] |
| If false, collisions will not be queued and processed, but updates will still be run on active effects. | |
| CollisionTypeLimit | QueuedCollisionsLimit [get] |
| The maximum number of "Collision" type collisions can be queued in a frame. | |
| CollisionTypeLimit | QueuedSlidesLimit [get] |
| The maximum number of "Slide" type collisions can be queued in a frame. | |
| CollisionTypeLimit | QueuedRollsLimit [get] |
| The maximum number of "Roll" type collisions can be queued in a frame. | |
| int | CollisionQueueCapacity [get] |
| The capacity of the array used to gather collision data from colliding objects in a frame. | |
| int | MaterialQueueCapacity [get] |
| The capacity of the array used to gather materials from colliding objects in a single frame. | |
The primary manager of the entire Impact CFX system.
| bool ImpactCFX.ImpactCFXManager.CanQueueCollision | ( | CollisionType | collisionType, |
| int | materialCount ) |
Can a collision of the given type be queued?
| collisionType | The type of collision |
| materialCount | The number of materials that will need to be processed for the collision. |
| void ImpactCFX.ImpactCFXManager.QueueCollision | ( | IImpactObject | triggerObject, |
| IImpactObject | hitObject, | ||
| ImpactContactPoint | contactPoint, | ||
| CollisionType | collisionType, | ||
| int | triggerObjectMaterialCount, | ||
| int | hitObjectMaterialCount, | ||
| CollisionVelocityMethod | collisionVelocityMethod, | ||
| ImpactMaterialAuthoring | triggerFallbackMaterial = default, | ||
| ImpactTagMask | hitFallbackTags = default ) |
Queues a collision between 2 objects.
| triggerObject | The object that triggered the collision. This object will be responsible for playing effects. |
| 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. |
| triggerFallbackMaterial | Optional fallback material to use if no material can be found on the trigger object. |
| hitFallbackTags | Optional fallback tags to use if no material can be found on the hit object. |
| void ImpactCFX.ImpactCFXManager.QueueCollision | ( | IImpactObject | triggerObject, |
| ImpactObjectData | hitObjectData, | ||
| ImpactContactPoint | contactPoint, | ||
| CollisionType | collisionType, | ||
| int | triggerObjectMaterialCount, | ||
| CollisionVelocityMethod | collisionVelocityMethod, | ||
| ImpactMaterialAuthoring | triggerFallbackMaterial = default ) |
Queues a collision using basic data for the object that was hit.
| triggerObject | The object that triggered the collision. This object will be responsible for playing effects. |
| 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. |
| triggerFallbackMaterial | Optional fallback material to use if no material can be found on the trigger object. |
| void ImpactCFX.ImpactCFXManager.QueueCollision | ( | ImpactObjectData | triggerObjectData, |
| IImpactObject | hitObject, | ||
| ImpactContactPoint | contactPoint, | ||
| CollisionType | collisionType, | ||
| int | hitObjectMaterialCount, | ||
| CollisionVelocityMethod | collisionVelocityMethod, | ||
| ImpactTagMask | hitFallbackTags = default ) |
Queues a collision using basic data for the object triggering the collision.
| triggerObjectData | Basic data for the object that triggered the collision. This object will be responsible for playing effects. |
| 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. |
| hitFallbackTags | Optional fallback tags to use if no material can be found on the hit object. |
| void ImpactCFX.ImpactCFXManager.QueueCollision | ( | ImpactObjectData | triggerObjectData, |
| ImpactObjectData | hitObjectData, | ||
| ImpactContactPoint | contactPoint, | ||
| CollisionType | collisionType, | ||
| CollisionVelocityMethod | collisionVelocityMethod ) |
Queues a collision using basic data for both the object triggering the collision and the object that was hit.
| triggerObjectData | Basic data for the object that triggered the collision. This object will be responsible for playing effects. |
| hitObjectData | Basic data for 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. |
| void ImpactCFX.ImpactCFXManager.RegisterMaterial | ( | ImpactMaterialAuthoring | material | ) |
Registers a single material to convert it into data structures suitable for use in jobs.
| material | The material being registered. |
| void ImpactCFX.ImpactCFXManager.RegisterMaterials | ( | IEnumerable< ImpactMaterialAuthoring > | materials | ) |
Registers a list of materials to convert them into data structures suitable for use in jobs.
| materials | The materials being registered. |
| void ImpactCFX.ImpactCFXManager.RegisterMaterials | ( | ImpactMaterialRegistry | materials | ) |
Registers a list of materials from a registry to convert them into data structures suitable for use in jobs.
| materials | The material registry containing the materials to be registered. |
| bool ImpactCFX.ImpactCFXManager.TryGetEffectProcessor< T > | ( | out T | effectProcessor | ) |
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 |
| bool ImpactCFX.ImpactCFXManager.TryGetMaterialProcessor< T > | ( | out T | materialProcessor | ) |
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 |