|
__init__(self,
mass,
inertia)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
|
|
|
|
|
apply_impulse(self,
j,
r)
Apply the impulse j to body with offset r. |
|
|
|
reset_forces(self)
Reset the forces on the body |
|
|
|
apply_force(self,
f,
r)
Apply (accumulate) the force f on body with offset r. |
|
|
|
update_velocity(self,
gravity,
damping,
dt)
Updates the velocity of the body using Euler integration. |
|
|
|
update_position(self,
dt)
Updates the position of the body using Euler integration. |
|
|
|
local_to_world(self,
v)
Convert body local to world coordinates |
|
|
|
world_to_local(self,
v)
Convert world to body local coordinates |
|
|
|
damped_spring(self,
b,
anchor1,
anchor2,
rlen,
k,
dmp,
dt)
Apply a spring force between this and body b at anchors anchr1 and
anchr2 respectively. |
|
|
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__str__
|