Packageflare.physics
Classpublic class ContactData
InheritanceContactData Inheritance Object

A structure which contains a contact information for a specific collider. Differently from a regular Contact, this object always references to the collider which caused the collision with the owner of this contact data, although the contact stored in the info property is the original contact, which could store the colliders references in no specific order.

Contacts are not persistent objects, once a testing phase is finished and a new one is started, contacts are reused and they could store completelly different information, even different colliders. so it is not a good idea storing contact references for future uses.

See also

Contact
Collider.contactData
Collider.colelctContacts


Public Properties
 PropertyDefined By
  collider : Collider
The collider involved in the collision with the owner of this ContactData.
ContactData
  info : Contact
The original contact which originated this contact data information.
ContactData
  pivot : Pivot3D
The collider pivot if any.
ContactData
Public Methods
 MethodDefined By
  
Creates a new ContactData.
ContactData
Property Detail
colliderproperty
public var collider:Collider

The collider involved in the collision with the owner of this ContactData.

See also

infoproperty 
public var info:Contact

The original contact which originated this contact data information.

pivotproperty 
public var pivot:Pivot3D

The collider pivot if any.

Constructor Detail
ContactData()Constructor
public function ContactData()

Creates a new ContactData. ContactData objects are created automatically by the physics engine, you don't need to create these manually.