Impact Interaction System API
|
Component for Impact Objects that have a rigidbody attached. This is the "cheap" version which does not use a FixedUpdate call. There may be slight inaccuracies on some objects, particularly regarding rolling. Best used for objects where precision isn't needed. More...
Public Member Functions | |
override VelocityData | GetVelocityDataAtPoint (Vector3 contactPoint) |
Gets this object's velocity data at the given point. By default this returns empty data. More... | |
override Vector3 | GetContactPointRelativePosition (Vector3 point) |
Gets the local position of the contact point relative to this object's transform. More... | |
![]() | |
override int | GetMaterialCompositionNonAlloc (Vector3 point, ImpactMaterialComposition[] results) |
Gets the material composition at the given point by filling out the given array. More... | |
override IImpactMaterial | GetPrimaryMaterial (Vector3 point) |
Gets the primary material at the given point. More... | |
override IImpactMaterial | GetPrimaryMaterial () |
Gets the primary material without knowing the contact point. More... | |
virtual VelocityData | GetVelocityDataAtPoint (Vector3 point) |
Gets this object's velocity data at the given point. By default this returns empty data. More... | |
virtual Vector3 | GetContactPointRelativePosition (Vector3 point) |
Gets the local position of the contact point relative to this object's transform. More... | |
abstract int | GetMaterialCompositionNonAlloc (Vector3 point, ImpactMaterialComposition[] results) |
Gets the material composition at the given point by filling out the given array. More... | |
abstract IImpactMaterial | GetPrimaryMaterial (Vector3 point) |
Gets the primary material at the given point. More... | |
abstract IImpactMaterial | GetPrimaryMaterial () |
Gets the primary material without knowing the contact point. More... | |
int | GetMaterialCompositionNonAlloc (Vector3 point, ImpactMaterialComposition[] results) |
Gets the material composition at the given point by filling out the given array. More... | |
IImpactMaterial | GetPrimaryMaterial (Vector3 point) |
Gets the primary material at the given point. More... | |
IImpactMaterial | GetPrimaryMaterial () |
Gets the primary material without knowing the contact point. More... | |
VelocityData | GetVelocityDataAtPoint (Vector3 contactPoint) |
Gets this object's velocity data at the given point. More... | |
Vector3 | GetContactPointRelativePosition (Vector3 point) |
Gets the local position of the contact point relative to this object's transform. More... | |
Protected Member Functions | |
override void | Awake () |
virtual void | Awake () |
Properties | |
ImpactRigidbodyWrapper | Rigidbody [get, set] |
The rigidbody (either 3D or 2D) associated with this object. | |
![]() | |
ImpactMaterialBase | Material [get, set] |
The ImpactMaterialBase this object uses. | |
![]() | |
int | Priority [get, set] |
How important this object is. More... | |
GameObject | GameObject [get] |
The GameObject associated with this object. More... | |
![]() | |
int | Priority [get] |
How important this object is. More... | |
GameObject | GameObject [get] |
The GameObject associated with this object. More... | |
Additional Inherited Members | |
![]() | |
int | _priority |
Component for Impact Objects that have a rigidbody attached. This is the "cheap" version which does not use a FixedUpdate call. There may be slight inaccuracies on some objects, particularly regarding rolling. Best used for objects where precision isn't needed.
|
protectedvirtual |
Reimplemented from Impact.Objects.ImpactObjectSingleMaterial.
|
virtual |
Gets the local position of the contact point relative to this object's transform.
point | The world-space point to convert to local space. |
Reimplemented from Impact.Objects.ImpactObjectBase.
|
virtual |
Gets this object's velocity data at the given point. By default this returns empty data.
point | The world-space point to get data for. |
Reimplemented from Impact.Objects.ImpactObjectBase.