OdeCollisionEntry

from panda3d.ode import OdeCollisionEntry
class OdeCollisionEntry

Bases:

Bases: TypedReferenceCount

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

Inheritance diagram

Inheritance diagram of OdeCollisionEntry

__getitem__(n: int) OdeContactGeom
__init__(param0: OdeCollisionEntry)
get_body1() OdeBody

Returns the first body in the collision.

get_body2() OdeBody

Returns the second body in the collision.

static get_class_type() panda3d.core.TypeHandle
get_contact_geom(n: int) OdeContactGeom

Returns the nth contact geom in the collision.

get_contact_geoms() list
get_contact_point(n: int) panda3d.core.LPoint3f

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

get_contact_points() list
get_geom1() OdeGeom

Returns the first geom in the collision.

get_geom2() OdeGeom

Returns the second geom in the collision.

get_num_contacts() int

Returns the number of contacts in the collision.

is_empty() bool

Returns true if the entry holds no contacts.