|
getX( )
|
Gets the x-component of the position.
|
|
getY( )
|
Gets the y-component of the position.
|
|
getPosition( )
|
Gets the position of the Body.
|
|
getVelocity( )
|
Gets the velocity of the Body.
|
|
|
|
|
getAngle( )
|
Gets the current angle of the Body.
|
|
getSpin( )
|
Gets the current spin of the Body.
|
|
|
|
|
getMass( )
|
Gets the mass of Body.
|
|
getInertia( )
|
Gets the inertia of Body.
|
|
|
|
|
getDamping( )
|
Gets linear damping.
|
|
getAngularDamping( )
|
Gets angular damping.
|
|
|
|
|
getWorldCenter( )
|
Gets the center of mass in world coordinates.
|
|
getLocalCenter( )
|
Gets the center of mass in local coordinates.
|
|
getWorldPoint( x, y )
|
Transforms a point from local coordinates to world coordinates.
|
|
getWorldVector( x, y )
|
Transforms a vector from local coordinates to world coordinates.
|
|
getLocalPoint( x, y )
|
Transforms a point from world coordinates to local coordinates.
|
|
getLocalVector( x, y )
|
Transforms a vector from world coordinates to local coordinates.
|
|
getVelocityWorldPoint( x, y )
|
Gets the velocity on the Body for the given world point.
|
|
getVelocityLocalPoint( x, y )
|
Gets the velocity on the Body for the given local point.
|
|
|
|
|
applyImpulse( jx, jy )
|
Applies an impulse to the Body.
|
|
applyImpulse( jx, jy, rx, ry )
|
Applies an impulse to the Body with an offset.
|
|
applyForce( fx, fy )
|
Applies force to the Body.
|
|
applyForce( fx, fy, rx, ry )
|
Applies force to the Body with an offset.
|
|
applyTorque( t )
|
Applies torque to the Body.
|
|
|
|
|
setX( x )
|
Sets the x-component of the position.
|
|
setY( y )
|
Sets the y-component of the position.
|
|
setPosition( x, y )
|
Sets the position of the Body.
|
|
setVelocity( x, y )
|
Sets the velocity of the Body.
|
|
|
|
|
setAngle( angle )
|
Sets the angle of the Body.
|
|
setSpin( spin )
|
Sets the spin of the Body.
|
|
|
|
|
setMassFromShapes( )
|
Sets mass properties from attatched shapes.
|
|
setMass( x, y, m, i )
|
Sets mass properies directly.
|
|
|
|
|
setDamping( damping )
|
Sets the linear damping of the Body.
|
|
setAngularDamping( damping )
|
Sets the angular damping of the Body.
|
|
|
|
|
isBullet( )
|
Checks whether this Body should be treated as a bullet.
|
|
setBullet( bullet )
|
Sets whether this Body should be treated as a Bullet.
|
|
|
|
|
isStatic( )
|
Checks whether this Body is static.
|
|
isDynamic( )
|
Checks whether this Body is dynamic.
|
|
isFrozen( )
|
Checks whether this Body is frozen.
|
|
isSleeping( )
|
Checks whether this Body is sleeping
|
|
|
|
|
setAllowSleep( allow )
|
Allows or disallows sleeping for this Body.
|
|
setSleep( sleep )
|
Puts a Body to sleep or wakes it up.
|