panda3d.ode.OdeCollisionEntry

class OdeCollisionEntry

Bases: TypedReferenceCount

A class used to hold information about a collision that has occurred.

Inheritance diagram

Inheritance diagram of OdeCollisionEntry

__init__(param0: OdeCollisionEntry) → None
getBody1() → OdeBody

Returns the first body in the collision.

Return type

OdeBody

getBody2() → OdeBody

Returns the second body in the collision.

Return type

OdeBody

static getClassType() → TypeHandle
Return type

TypeHandle

getContactGeom(n: size_t) → OdeContactGeom

Returns the nth contact geom in the collision.

Return type

OdeContactGeom

getContactGeoms() → list
getContactPoint(n: size_t) → LPoint3f

Returns the nth contact point in the collision. This does exactly the same as get_contact_geom(n).get_pos().

Return type

LPoint3f

getContactPoints() → list
getGeom1() → OdeGeom

Returns the first geom in the collision.

Return type

OdeGeom

getGeom2() → OdeGeom

Returns the second geom in the collision.

Return type

OdeGeom

getNumContacts() → size_t

Returns the number of contacts in the collision.

Return type

size_t

isEmpty() → bool

Returns true if the entry holds no contacts.