panda3d.ode.OdeGeom

class OdeGeom

Bases: TypedObject

Inheritance diagram

Inheritance diagram of OdeGeom

enum GeomClass
enumerator GC_sphere = 0
enumerator GC_box = 1
enumerator GC_capped_cylinder = 2
enumerator GC_cylinder = 3
enumerator GC_plane = 4
enumerator GC_ray = 5
enumerator GC_tri_mesh = 8

GC_convex, GC_geom_transform,

enumerator GC_simple_space = 10
enumerator GC_hash_space = 11
enumerator GC_quad_tree_space = 12
clearOffset() → None
compareTo(other: OdeGeom) → int
convert() → object
convertToBox() → OdeBoxGeom
Return type

OdeBoxGeom

convertToCappedCylinder() → OdeCappedCylinderGeom
Return type

OdeCappedCylinderGeom

convertToCylinder() → OdeCylinderGeom

OdeConvexGeom convert_to_convex() const;

Return type

OdeCylinderGeom

convertToHashSpace() → OdeHashSpace
Return type

OdeHashSpace

convertToPlane() → OdePlaneGeom

OdeHeightfieldGeom convert_to_heightfield() const;

Return type

OdePlaneGeom

convertToQuadTreeSpace() → OdeQuadTreeSpace
Return type

OdeQuadTreeSpace

convertToRay() → OdeRayGeom
Return type

OdeRayGeom

convertToSimpleSpace() → OdeSimpleSpace
Return type

OdeSimpleSpace

convertToSphere() → OdeSphereGeom
Return type

OdeSphereGeom

convertToTriMesh() → OdeTriMeshGeom
Return type

OdeTriMeshGeom

destroy() → None
disable() → None
enable() → None
getAABB(min: LVecBase3f, max: LVecBase3f) → None
getAABounds() → object
getBody() → OdeBody
Return type

OdeBody

getCategoryBits() → BitMask32
Return type

BitMask32

getClass() → int
static getClassType() → TypeHandle
Return type

TypeHandle

getCollideBits() → BitMask32
Return type

BitMask32

getConvertedSpace() → object
getId() → dGeomID

Returns the underlying dGeomID.

Return type

dGeomID

getOffsetPosition() → LPoint3f
Return type

LPoint3f

getOffsetQuaternion() → LQuaternionf
Return type

LQuaternionf

getOffsetRotation() → LMatrix3f
Return type

LMatrix3f

getPosition() → LPoint3f
Return type

LPoint3f

getQuaternion() → LQuaternionf
Return type

LQuaternionf

getRotation() → LMatrix3f
Return type

LMatrix3f

getSpace() → OdeSpace
Return type

OdeSpace

hasBody() → bool
isEmpty() → bool

Returns true if the ID is 0, meaning the OdeGeom does not point to a valid geom. It is an error to call a method on an empty geom. Note that an empty OdeGeom also evaluates to False.

isEnabled() → int
isOffset() → int
isSpace() → int
setBody(body: OdeBody) → None

INLINE void set_data(void* data);

setCategoryBits(bits: BitMask32) → None
setCollideBits(bits: BitMask32) → None
setOffsetPosition(pos: LVecBase3f) → None
setOffsetPosition(x: dReal, y: dReal, z: dReal) → None
setOffsetQuaternion(q: LQuaternionf) → None
setOffsetRotation(r: LMatrix3f) → None
setOffsetWorldPosition(pos: LVecBase3f) → None
setOffsetWorldPosition(x: dReal, y: dReal, z: dReal) → None
setOffsetWorldQuaternion(q: LQuaternionf) → None
setOffsetWorldRotation(r: LMatrix3f) → None
setPosition(pos: LVecBase3f) → None
setPosition(x: dReal, y: dReal, z: dReal) → None
setQuaternion(q: LQuaternionf) → None
setRotation(r: LMatrix3f) → None
write(out: ostream, indent: int) → None