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
clear_offset()
compare_to(other: OdeGeom) int
convert() object
convert_to_box() OdeBoxGeom
convert_to_capped_cylinder() OdeCappedCylinderGeom
convert_to_cylinder() OdeCylinderGeom

OdeConvexGeom convert_to_convex() const;

convert_to_hash_space() OdeHashSpace
convert_to_plane() OdePlaneGeom

OdeHeightfieldGeom convert_to_heightfield() const;

convert_to_quad_tree_space() OdeQuadTreeSpace
convert_to_ray() OdeRayGeom
convert_to_simple_space() OdeSimpleSpace
convert_to_sphere() OdeSphereGeom
convert_to_tri_mesh() OdeTriMeshGeom
destroy()
disable()
enable()
get_AABB(min: panda3d.core.LVecBase3f, max: panda3d.core.LVecBase3f)
get_AA_bounds() object
get_body() OdeBody
get_category_bits() panda3d.core.BitMask32
get_class() int
static get_class_type() panda3d.core.TypeHandle
get_collide_bits() panda3d.core.BitMask32
get_converted_space() object
get_id() dGeomID

Returns the underlying dGeomID.

get_offset_position() panda3d.core.LPoint3f
get_offset_quaternion() panda3d.core.LQuaternionf
get_offset_rotation() panda3d.core.LMatrix3f
get_position() panda3d.core.LPoint3f
get_quaternion() panda3d.core.LQuaternionf
get_rotation() panda3d.core.LMatrix3f
get_space() OdeSpace
has_body() bool
is_empty() 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.

is_enabled() int
is_offset() int
is_space() int
set_body(body: OdeBody)

INLINE void set_data(void* data);

set_category_bits(bits: panda3d.core.BitMask32)
set_collide_bits(bits: panda3d.core.BitMask32)
set_offset_position(pos: panda3d.core.LVecBase3f)
set_offset_position(x: float, y: float, z: float)
set_offset_quaternion(q: panda3d.core.LQuaternionf)
set_offset_rotation(r: panda3d.core.LMatrix3f)
set_offset_world_position(pos: panda3d.core.LVecBase3f)
set_offset_world_position(x: float, y: float, z: float)
set_offset_world_quaternion(q: panda3d.core.LQuaternionf)
set_offset_world_rotation(r: panda3d.core.LMatrix3f)
set_position(pos: panda3d.core.LVecBase3f)
set_position(x: float, y: float, z: float)
set_quaternion(q: panda3d.core.LQuaternionf)
set_rotation(r: panda3d.core.LMatrix3f)
write(out: panda3d.core.ostream, indent: int)