OdeGeom

from panda3d.ode import 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
convertToCappedCylinder()OdeCappedCylinderGeom
convertToCylinder()OdeCylinderGeom

OdeConvexGeom convert_to_convex() const;

convertToHashSpace()OdeHashSpace
convertToPlane()OdePlaneGeom

OdeHeightfieldGeom convert_to_heightfield() const;

convertToQuadTreeSpace()OdeQuadTreeSpace
convertToRay()OdeRayGeom
convertToSimpleSpace()OdeSimpleSpace
convertToSphere()OdeSphereGeom
convertToTriMesh()OdeTriMeshGeom
destroy()None
disable()None
enable()None
getAABB(min: panda3d.core.LVecBase3f, max: panda3d.core.LVecBase3f)None
getAABounds()object
getBody()OdeBody
getCategoryBits()panda3d.core.BitMask32
getClass()int
static getClassType()panda3d.core.TypeHandle
getCollideBits()panda3d.core.BitMask32
getConvertedSpace()object
getId() → dGeomID

Returns the underlying dGeomID.

getOffsetPosition()panda3d.core.LPoint3f
getOffsetQuaternion()panda3d.core.LQuaternionf
getOffsetRotation()panda3d.core.LMatrix3f
getPosition()panda3d.core.LPoint3f
getQuaternion()panda3d.core.LQuaternionf
getRotation()panda3d.core.LMatrix3f
getSpace()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: panda3d.core.BitMask32)None
setCollideBits(bits: panda3d.core.BitMask32)None
setOffsetPosition(pos: panda3d.core.LVecBase3f)None
setOffsetPosition(x: float, y: float, z: float)None
setOffsetQuaternion(q: panda3d.core.LQuaternionf)None
setOffsetRotation(r: panda3d.core.LMatrix3f)None
setOffsetWorldPosition(pos: panda3d.core.LVecBase3f)None
setOffsetWorldPosition(x: float, y: float, z: float)None
setOffsetWorldQuaternion(q: panda3d.core.LQuaternionf)None
setOffsetWorldRotation(r: panda3d.core.LMatrix3f)None
setPosition(pos: panda3d.core.LVecBase3f)None
setPosition(x: float, y: float, z: float)None
setQuaternion(q: panda3d.core.LQuaternionf)None
setRotation(r: panda3d.core.LMatrix3f)None
write(out: panda3d.core.ostream, indent: int)None