Package | flare.physics |
Class | public class ContactData |
Inheritance | ContactData ![]() |
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
Property | Defined 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 |
Method | Defined By | ||
---|---|---|---|
Creates a new ContactData. | ContactData |
collider | property |
public var collider:Collider
The collider involved in the collision with the owner of this ContactData.
See also
info | property |
public var info:Contact
The original contact which originated this contact data information.
pivot | property |
public var pivot:Pivot3D
The collider pivot if any.
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.