Impact Interaction System API
Impact.Materials.ImpactMaterial Class Reference

The standard implementation of an Impact Material, applicable for most uses. More...

Inheritance diagram for Impact.Materials.ImpactMaterial:
Impact.Materials.ImpactMaterialBase Impact.Materials.IImpactMaterial

Public Member Functions

override int GetInteractionResultsNonAlloc< T > (T interactionData, IInteractionResult[] results)
 Fills the results array with interaction results based on the given interaction data. More...
 
override void Preload ()
 Preloads data for all interaction sets. More...
 
void AddInteractionSet (ImpactMaterialInteractionSet item)
 
void RemoveInteractionSet (int index)
 
void ClearInteractionSets ()
 
abstract int GetInteractionResultsNonAlloc< T > (T interactionData, IInteractionResult[] results)
 Fills out the results array with the interaction results created from the interaction data. More...
 
abstract void Preload ()
 Preloads any needed data and objects. More...
 
int GetInteractionResultsNonAlloc< T > (T data, IInteractionResult[] results)
 Fills out the results array with the interaction results created from the interaction data. More...
 
void Preload ()
 Preloads any needed data and objects. More...
 

Properties

ImpactTagMask FallbackTagMask [get, set]
 The tag mask to use if the input interaction data does not have one.
 
int InteractionSetCount [get]
 
ImpactMaterialInteractionSet this[int index] [get, set]
 
- Properties inherited from Impact.Materials.ImpactMaterialBase
ImpactTagLibraryBase TagLibrary [get, set]
 The tag library used for this material (only used in the editor).
 
ImpactTagMask MaterialTagsMask [get, set]
 The tags defined for this material. More...
 
- Properties inherited from Impact.Materials.IImpactMaterial
ImpactTagMask MaterialTagsMask [get]
 The tags for this material. More...
 

Detailed Description

The standard implementation of an Impact Material, applicable for most uses.

Member Function Documentation

◆ GetInteractionResultsNonAlloc< T >()

override int Impact.Materials.ImpactMaterial.GetInteractionResultsNonAlloc< T > ( interactionData,
IInteractionResult[]  results 
)
virtual

Fills the results array with interaction results based on the given interaction data.

Parameters
interactionDataThe interaction data to create results for.
resultsAn array to fill with interaction results.
Returns
The number of results.

Implements Impact.Materials.ImpactMaterialBase.

◆ Preload()

override void Impact.Materials.ImpactMaterial.Preload ( )
virtual

Preloads data for all interaction sets.

Implements Impact.Materials.ImpactMaterialBase.