OdeWorld
from panda3d.ode import OdeWorld
- class OdeWorld
Bases:
Bases:
TypedObject
Inheritance diagram
- __init__()
- __init__(copy: OdeWorld)
- add_body_dampening(body: OdeBody, surface: int)
void assign_surface_body(OdeBody& body, int surface);
- destroy()
- static get_class_type() panda3d.core.TypeHandle
- get_gravity() panda3d.core.LVecBase3f
- get_id() dWorldID
Returns the underlying dWorldID.
- impulse_to_force(stepsize: float, impulse: panda3d.core.LVecBase3f) panda3d.core.LVecBase3f
- impulse_to_force(stepsize: float, ix: float, iy: float, iz: float) panda3d.core.LVecBase3f
- init_surface_table(num_surfaces: panda3d.core.uint8_t)
- is_empty() bool
Returns true if the ID is 0, meaning the
OdeWorld
does not point to a valid world. It is an error to call a method on an empty world. Note that an emptyOdeWorld
also evaluates to False.
- set_gravity(vec: panda3d.core.LVecBase3f)