pagoda.physics.Capsule¶
-
class
pagoda.physics.Capsule(name, world, density=1000.0, mass=None, **shape)[source]¶ -
__init__(name, world, density=1000.0, mass=None, **shape)¶
Methods
__init__(name, world[, density, mass])add_force(force[, relative, position, ...])Add a force to this body. add_torque(torque[, relative])Add a torque to this body. body_to_world(position)Convert a body-relative offset to world coordinates. connect_to(joint, other_body[, offset, ...])Move another body next to this one and join them together. init_mass(m, density, mass)join_to(joint[, other_body])Connect this body to another one using a joint. relative_offset_to_world(offset)Convert a relative body offset to world coordinates. rotate_to_body(x)Rotate the given vector to the same orientation as this body. world_to_body(position)Convert a point in world coordinates to a body-relative offset. Attributes
angular_velocityCurrent angular velocity of this body (in world coordinates). dimensionsfollows_gravityTrue iff this body follows gravity. forceCurrent net force acting on this body (in world coordinates). is_kinematicTrue iff this body is kinematic. lengthlinear_velocityCurrent linear velocity of this body (in world coordinates). massThe ODE mass object for this body. positionThe (x, y, z) coordinates of the center of this body. quaternionThe (w, x, y, z) rotation quaternion for this body. radiusrotationThe rotation matrix for this body. stateThe state of this body includes: torqueCurrent net torque acting on this body (in world coordinates). volume-