Impact Interaction System API
Impact.ImpactContactPoint Struct Reference

Implementation of the IImpactContactPoint interface. More...

Inheritance diagram for Impact.ImpactContactPoint:
Impact.IImpactContactPoint

Public Member Functions

 ImpactContactPoint (IImpactContactPoint original)
 
 ImpactContactPoint (ContactPoint contact3D)
 Initializes the contact point with data from a ContactPoint. More...
 
 ImpactContactPoint (ContactPoint2D contact2D)
 Initializes the contact point with data from a ContactPoint2D. More...
 

Properties

Vector3 Point [get, set]
 The contact point of the collision. More...
 
Vector3 Normal [get, set]
 The surface normal at the contact point. More...
 
GameObject ThisObject [get, set]
 The object that recieved the collision event. More...
 
GameObject OtherObject [get, set]
 The object we are colliding with. More...
 
PhysicsType PhysicsType [get, set]
 Whether the source contact point was 3D or 2D. More...
 
int ThisPhysicsMaterialID [get, set]
 The instance ID of the Physic Material or Physics 2D Material that was on this object. More...
 
int OtherPhysicsMaterialID [get, set]
 The instance ID of the Physic Material or Physics 2D Material that was on the collider. More...
 
- Properties inherited from Impact.IImpactContactPoint
Vector3 Point [get, set]
 The contact point of the collision. More...
 
Vector3 Normal [get, set]
 The surface normal at the contact point. More...
 
GameObject ThisObject [get, set]
 The object that recieved the collision event. More...
 
GameObject OtherObject [get, set]
 The object we are colliding with. More...
 
PhysicsType PhysicsType [get, set]
 Whether the source contact point data was 3D or 2D. More...
 
int ThisPhysicsMaterialID [get, set]
 The instance ID of the Physic Material or Physics 2D Material that was on this object. More...
 
int OtherPhysicsMaterialID [get, set]
 The instance ID of the Physic Material or Physics 2D Material that was on the other object. More...
 

Detailed Description

Implementation of the IImpactContactPoint interface.

Constructor & Destructor Documentation

◆ ImpactContactPoint() [1/2]

Impact.ImpactContactPoint.ImpactContactPoint ( ContactPoint  contact3D)

Initializes the contact point with data from a ContactPoint.

Parameters
contact3DThe source ContactPoint data.

◆ ImpactContactPoint() [2/2]

Impact.ImpactContactPoint.ImpactContactPoint ( ContactPoint2D  contact2D)

Initializes the contact point with data from a ContactPoint2D.

Parameters
contact2DThe source ContactPoint2D data.

Property Documentation

◆ Normal

Vector3 Impact.ImpactContactPoint.Normal
getset

The surface normal at the contact point.

Implements Impact.IImpactContactPoint.

◆ OtherObject

GameObject Impact.ImpactContactPoint.OtherObject
getset

The object we are colliding with.

Implements Impact.IImpactContactPoint.

◆ OtherPhysicsMaterialID

int Impact.ImpactContactPoint.OtherPhysicsMaterialID
getset

The instance ID of the Physic Material or Physics 2D Material that was on the collider.

Implements Impact.IImpactContactPoint.

◆ PhysicsType

PhysicsType Impact.ImpactContactPoint.PhysicsType
getset

Whether the source contact point was 3D or 2D.

Implements Impact.IImpactContactPoint.

◆ Point

Vector3 Impact.ImpactContactPoint.Point
getset

The contact point of the collision.

Implements Impact.IImpactContactPoint.

◆ ThisObject

GameObject Impact.ImpactContactPoint.ThisObject
getset

The object that recieved the collision event.

Implements Impact.IImpactContactPoint.

◆ ThisPhysicsMaterialID

int Impact.ImpactContactPoint.ThisPhysicsMaterialID
getset

The instance ID of the Physic Material or Physics 2D Material that was on this object.

Implements Impact.IImpactContactPoint.