OdeWorld
from panda3d.ode import OdeWorld
- class OdeWorld
Bases:
Bases:
TypedObject
Inheritance diagram
- __init__()
- __init__(copy: OdeWorld)
- addBodyDampening(body: OdeBody, surface: int)
void assign_surface_body(OdeBody& body, int surface);
- destroy()
- static getClassType() panda3d.core.TypeHandle
- getGravity() panda3d.core.LVecBase3f
- getId() dWorldID
Returns the underlying dWorldID.
- impulseToForce(stepsize: float, impulse: panda3d.core.LVecBase3f) panda3d.core.LVecBase3f
- impulseToForce(stepsize: float, ix: float, iy: float, iz: float) panda3d.core.LVecBase3f
- initSurfaceTable(num_surfaces: panda3d.core.uint8_t)
- isEmpty() 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.
- setGravity(vec: panda3d.core.LVecBase3f)