|
Impact Interaction System API
|
Helper class for handling interactions based on raycasts. More...
Static Public Member Functions | |
| static void | Trigger (ImpactTagMask tagMask, RaycastHit hit, Vector3 velocity, GameObject fromObject, int interactionType, bool useMaterialComposition) |
| Trigger an interaction from a raycast. The interaction will be processed on the object that was hit by the raycast. More... | |
| static void | Trigger< T > (T interactionData, RaycastHit hit, bool useMaterialComposition) |
| Trigger an interaction from a raycast. The interaction will be processed on the object that was hit by the raycast. More... | |
| static void | Trigger2D (ImpactTagMask tagMask, RaycastHit2D hit, Vector3 velocity, GameObject fromObject, int interactionType, bool useMaterialComposition) |
| Trigger an interaction from a 2D raycast. The interaction will be processed on the object that was hit by the raycast. More... | |
| static void | Trigger2D< T > (T interactionData, RaycastHit2D hit, bool useMaterialComposition) |
| Trigger an interaction from a 2D raycast. The interaction will be processed on the object that was hit by the raycast. More... | |
| static void | Trigger< T > (T interactionData, IImpactObject otherObject, int otherObjectPhysicsMaterialID, bool useMaterialComposition) |
| Trigger an interaction. This will trigger an interaction on the object that was hit. Useful for things like bullets or footsteps. More... | |
| static void | Trigger (IImpactObject impactObject, RaycastHit hit, Vector3 velocity, int interactionType, bool useMaterialComposition) |
| Trigger an interaction from a raycast. Impact Material data will be retrieved from the object that was hit by the raycast. The interaction will be processed using the given IImpactObject. More... | |
| static void | Trigger< T > (T interactionData, RaycastHit hit, IImpactObject impactObject, bool useMaterialComposition) |
| Trigger an interaction from a raycast. Impact Material data will be retrieved from the object that was hit by the raycast. The interaction will be processed using the given IImpactObject. More... | |
| static void | Trigger2D (IImpactObject impactObject, RaycastHit2D hit, Vector3 velocity, int interactionType, bool useMaterialComposition) |
| Trigger an interaction from a 2D raycast. Impact Material data will be retrieved from the object that was hit by the raycast. The interaction will be processed using the given IImpactObject. More... | |
| static void | Trigger2D< T > (T interactionData, RaycastHit2D hit, IImpactObject impactObject, bool useMaterialComposition) |
| Trigger an interaction from a 2D raycast. Impact Material data will be retrieved from the object that was hit by the raycast. The interaction will be processed using the given IImpactObject. More... | |
| static void | Trigger< T > (T interactionData, IImpactObject sourceObject, IImpactObject otherObject, int otherObjectPhysicsMaterialID, bool useMaterialComposition) |
| Trigger an interaction. This will trigger an interaction for the source object. More... | |
Helper class for handling interactions based on raycasts.
|
static |
Trigger an interaction from a raycast. Impact Material data will be retrieved from the object that was hit by the raycast. The interaction will be processed using the given IImpactObject.
| hit | Raycast hit data. The contact point, normal, and the object that was hit will be retrived from this. |
| impactObject | The Impact Object the resulting interaction will be processed on. |
| velocity | The velocity of the interaction. |
| interactionType | The type of interaction. |
| useMaterialComposition | Should this trigger use the material composition of the object it hit by the raycast? |
|
static |
Trigger an interaction from a raycast. The interaction will be processed on the object that was hit by the raycast.
| hit | Raycast hit data. The contact point, normal, and the object that was hit will be retrived from this. |
| tagMask | The tag mask to use for the interaction. |
| velocity | The velocity of the interaction. |
| fromObject | The object the interaction is originating from. |
| interactionType | The type of interaction. |
| useMaterialComposition | Should this trigger use the material composition of the object it hit by the raycast? |
|
static |
Trigger an interaction from a 2D raycast. Impact Material data will be retrieved from the object that was hit by the raycast. The interaction will be processed using the given IImpactObject.
| hit | Raycast 2D hit data. The contact point, normal, and the object that was hit will be retrived from this. |
| impactObject | The Impact Object the resulting interaction will be processed on. |
| velocity | The velocity of the interaction. |
| interactionType | The type of interaction. |
| useMaterialComposition | Should this trigger use the material composition of the object it hit by the raycast? |
|
static |
Trigger an interaction from a 2D raycast. The interaction will be processed on the object that was hit by the raycast.
| hit | Raycast 2D hit data. The contact point, normal, and the object that was hit will be retrived from this. |
| tagMask | The tag mask to use for the interaction. |
| velocity | The velocity of the interaction. |
| fromObject | The object the interaction is originating from. |
| interactionType | The type of interaction. |
| useMaterialComposition | Should this trigger use the material composition of the object it hit by the raycast? |
|
static |
Trigger an interaction from a 2D raycast. The interaction will be processed on the object that was hit by the raycast.
| hit | Raycast 2D hit data. The contact point, normal, and the object that was hit will be retrived from this. |
| interactionData | The original interaction data. Velocity, TagMask, ThisObject, and InteractionType should already be set. |
| useMaterialComposition | Should this trigger use the material composition of the object it hit by the raycast? |
| T | : | IInteractionData |
|
static |
Trigger an interaction from a 2D raycast. Impact Material data will be retrieved from the object that was hit by the raycast. The interaction will be processed using the given IImpactObject.
| hit | Raycast 2D hit data. The contact point, normal, and the object that was hit will be retrived from this. |
| interactionData | The original interaction data. Velocity, ThisObject, and InteractionType should already be set. |
| impactObject | The IImpactObject that will process the interaction. |
| useMaterialComposition | Should this trigger use the material composition of the object it hit by the raycast? |
| T | : | IInteractionData |
|
static |
Trigger an interaction. This will trigger an interaction on the object that was hit. Useful for things like bullets or footsteps.
| interactionData | The fully populated interaction data. |
| otherObject | The object that was hit. |
| otherObjectPhysicsMaterialID | The instance ID of the physics material of the hit object. This can be 0 if unknown. |
| useMaterialComposition | Should this trigger use the material composition of the object that was hit? |
| T | : | IInteractionData |
|
static |
Trigger an interaction. This will trigger an interaction for the source object.
| interactionData | The fully populated interaction data. |
| sourceObject | The object the interaction originated from. |
| otherObject | The object that was hit. |
| otherObjectPhysicsMaterialID | The instance ID of the physics material of the hit object. This can be 0 if unknown. |
| useMaterialComposition | Should this trigger use the material composition of the object that was hit? |
| T | : | IInteractionData |
|
static |
Trigger an interaction from a raycast. The interaction will be processed on the object that was hit by the raycast.
| hit | Raycast hit data. The contact point, normal, and the object that was hit will be retrived from this. |
| interactionData | The original interaction data. Velocity, TagMask, ThisObject, and InteractionType should already be set. |
| useMaterialComposition | Should this trigger use the material composition of the object it hit by the raycast? |
| T | : | IInteractionData |
|
static |
Trigger an interaction from a raycast. Impact Material data will be retrieved from the object that was hit by the raycast. The interaction will be processed using the given IImpactObject.
| hit | Raycast hit data. The contact point, normal, and the object that was hit will be retrived from this. |
| interactionData | The original interaction data. Velocity, ThisObject, and InteractionType should already be set. |
| impactObject | The IImpactObject that will process the interaction. |
| useMaterialComposition | Should this trigger use the material composition of the object it hit by the raycast? |
| T | : | IInteractionData |