Impact Interaction System API
Impact.ImpactCollisionSingleContactWrapper Struct Reference

Implementation of the IImpactCollisionWrapper interface that only has a single contact point. Uses the ImpactContactPoint struct. More...

Inheritance diagram for Impact.ImpactCollisionSingleContactWrapper:
Impact.IImpactCollisionWrapper< ImpactContactPoint >

Public Member Functions

 ImpactCollisionSingleContactWrapper (ImpactContactPoint contactPoint, PhysicsType physicsType)
 Initializes the wrapper for 3D or 2D OnTrigger calls. More...
 
ImpactContactPoint GetContact (int index)
 Returns the contact point. More...
 
- Public Member Functions inherited from Impact.IImpactCollisionWrapper< ImpactContactPoint >
GetContact (int index)
 Returns the contact point at the given index. More...
 

Properties

int ContactCount [get]
 The number of contacts in the collision.
 
PhysicsType PhysicsType [get]
 Whether the source Collision data was 3D or 2D.
 
- Properties inherited from Impact.IImpactCollisionWrapper< ImpactContactPoint >
int ContactCount [get]
 The number of contacts in the collision.
 
PhysicsType PhysicsType [get]
 Whether the source Collision data was 3D or 2D.
 

Detailed Description

Implementation of the IImpactCollisionWrapper interface that only has a single contact point. Uses the ImpactContactPoint struct.

Constructor & Destructor Documentation

◆ ImpactCollisionSingleContactWrapper()

Impact.ImpactCollisionSingleContactWrapper.ImpactCollisionSingleContactWrapper ( ImpactContactPoint  contactPoint,
PhysicsType  physicsType 
)

Initializes the wrapper for 3D or 2D OnTrigger calls.

Parameters
contactPointThe source Collision object.

Member Function Documentation

◆ GetContact()

ImpactContactPoint Impact.ImpactCollisionSingleContactWrapper.GetContact ( int  index)

Returns the contact point.

Parameters
indexDoes nothing for this struct since there is only a single contact point.
Returns
The contact point.