OdeGeom

from panda3d.ode import OdeGeom
class OdeGeom

Bases:

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()
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()
disable()
enable()
getAABB(min: panda3d.core.LVecBase3f, max: panda3d.core.LVecBase3f)
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)

INLINE void set_data(void* data);

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