Class BulletCollisionInfo3D
The collision info 3d implementation for bullet.
Inherited Members
Namespace: Evergine.Bullet
Assembly: Evergine.Bullet.dll
Syntax
public class BulletCollisionInfo3D : CollisionInfo3D
Fields
ManifoldId
The manifold index.
Declaration
public int ManifoldId
Field Value
Type | Description |
---|---|
int |
Properties
Id
Gets the contact info id.
Declaration
public override int Id { get; }
Property Value
Type | Description |
---|---|
int |
Overrides
NumContacts
Gets the number of contacts.
Declaration
public override int NumContacts { get; }
Property Value
Type | Description |
---|---|
int |
Overrides
OtherBody
Gets the Collider B.
Declaration
public override PhysicBody3D OtherBody { get; }
Property Value
Type | Description |
---|---|
PhysicBody3D |
Overrides
State
Gets the collision state.
Declaration
public override CollisionInfo3DState State { get; }
Property Value
Type | Description |
---|---|
CollisionInfo3DState |
Overrides
ThisBody
Gets the Collider A.
Declaration
public override PhysicBody3D ThisBody { get; }
Property Value
Type | Description |
---|---|
PhysicBody3D |
Overrides
Methods
GetContact(int, out ContactPoint3D)
Gets the contact point at the specific index.
Declaration
public override bool GetContact(int index, out ContactPoint3D contact)
Parameters
Type | Name | Description |
---|---|---|
int | index | The index of the contact to retrieve. |
ContactPoint3D | contact | The retrieved contact. |
Returns
Type | Description |
---|---|
bool | True if the contact has been susccessfully retrieved. |
Overrides
GetContacts(ContactPoint3D[])
Retrieve all contact points for this collision.
Declaration
public override int GetContacts(ContactPoint3D[] contacts)
Parameters
Type | Name | Description |
---|---|---|
ContactPoint3D[] | contacts | Array of contacts used to retrieve the results. |
Returns
Type | Description |
---|---|
int | The number of contacts retrieveed in the array. |
Overrides
GetContacts(ICollection<ContactPoint3D>)
Retrieve all contact points for this collision.
Declaration
public override void GetContacts(ICollection<ContactPoint3D> contacts)
Parameters
Type | Name | Description |
---|---|---|
ICollection<ContactPoint3D> | contacts | A collection of contacts used to retrieve the results. |
Overrides
Remarks
The collection is not cleared.