Class: Body

ODE. Body

Control of an object's position through physics simulation

abstractnew ODE.Body()

D:/work/ODE.js/lib/ode.js, line 1023

Methods

staticODE.Body.areConnected(b1, b2){Boolean}

D:/work/ODE.js/lib/ode.js, line 1301
Name Type Description
b1 ODE.Body
b2 ODE.Body
Returns:
Type Description
Boolean return true if the two bodies are connected together by a joint

addForce(fx, fy, fz){ODE.Body}

D:/work/ODE.js/lib/ode.js, line 1157
Name Type Description
fx Number
fy Number
fz Number
Returns:
Type Description
ODE.Body

addForceAtPos(fx, fy, fz, px, py, pz){ODE.Body}

D:/work/ODE.js/lib/ode.js, line 1189
Name Type Description
fx Number
fy Number
fz Number
px Number
py Number
pz Number
Returns:
Type Description
ODE.Body

addForceAtRelPos(fx, fy, fz, px, py, pz){ODE.Body}

D:/work/ODE.js/lib/ode.js, line 1200
Name Type Description
fx Number
fy Number
fz Number
px Number
py Number
pz Number
Returns:
Type Description
ODE.Body

addRelForce(fx, fy, fz){ODE.Body}

D:/work/ODE.js/lib/ode.js, line 1173
Name Type Description
fx Number
fy Number
fz Number
Returns:
Type Description
ODE.Body

addRelForceAtPos(fx, fy, fz, px, py, pz){ODE.Body}

D:/work/ODE.js/lib/ode.js, line 1211
Name Type Description
fx Number
fy Number
fz Number
px Number
py Number
pz Number
Returns:
Type Description
ODE.Body

addRelForceAtRelPos(fx, fy, fz, px, py, pz){ODE.Body}

D:/work/ODE.js/lib/ode.js, line 1222
Name Type Description
fx Number
fy Number
fz Number
px Number
py Number
pz Number
Returns:
Type Description
ODE.Body

addRelTorque(fx, fy, fz){ODE.Body}

D:/work/ODE.js/lib/ode.js, line 1181
Name Type Description
fx Number
fy Number
fz Number
Returns:
Type Description
ODE.Body

addTorque(fx, fy, fz){ODE.Body}

D:/work/ODE.js/lib/ode.js, line 1165
Name Type Description
fx Number
fy Number
fz Number
Returns:
Type Description
ODE.Body

destroy()

D:/work/ODE.js/lib/ode.js, line 1038

clear memory space in LLVM heap

disable(){ODE.Body}

D:/work/ODE.js/lib/ode.js, line 1281
Returns:
Type Description
ODE.Body

enable(){ODE.Body}

D:/work/ODE.js/lib/ode.js, line 1276
Returns:
Type Description
ODE.Body

getAngularVel(){Float32Array}

D:/work/ODE.js/lib/ode.js, line 1127

get the angular velocity of the body.

Returns:
Type Description
Float32Array 3d Vector [x, y, z]

getForce(){Float32Array}

D:/work/ODE.js/lib/ode.js, line 1234

get the current accumulated force vector

Returns:
Type Description
Float32Array 3d Vector [x, y, z]

getLinearVel(){Float32Array}

D:/work/ODE.js/lib/ode.js, line 1116

get the linear velocity of the body.

Returns:
Type Description
Float32Array 3d Vector [x, y, z]

getMass(){ODE.Mass}

D:/work/ODE.js/lib/ode.js, line 1145

get a new instance of mass of the body (don't forget to destroy it)

Returns:
Type Description
ODE.Mass

getPointer(){Number}

D:/work/ODE.js/lib/ode.js, line 1031

get offset address in heap memory

Returns:
Type Description
Number

getPosition(){Float32Array}

D:/work/ODE.js/lib/ode.js, line 1085

get the position of the body.

Returns:
Type Description
Float32Array 3d position [x, y, z]

getQuaternion(){ODE.Quaternion}

D:/work/ODE.js/lib/ode.js, line 1106

get the rotation of the body in quaternion.

Returns:
Type Description
ODE.Quaternion

getRelPointPos(){Array.<Number>}

D:/work/ODE.js/lib/ode.js, line 1256
Returns:
Type Description
Array.<Number> 3d Position [x, y, z]

getRelPointVel(){Array.<Number>}

D:/work/ODE.js/lib/ode.js, line 1266
Returns:
Type Description
Array.<Number> 3d Vector [x, y, z]

getRotation(){ODE.Rotation}

D:/work/ODE.js/lib/ode.js, line 1096

get the rotation of the body in Matrix3x3.

Returns:
Type Description
ODE.Rotation

getTorque(){Float32Array}

D:/work/ODE.js/lib/ode.js, line 1245

get the current accumulated torque vector

Returns:
Type Description
Float32Array 3d Vector [x, y, z]

isEnabled(){Boolean}

D:/work/ODE.js/lib/ode.js, line 1286
Returns:
Type Description
Boolean

setAngularVel(x, y, z){ODE.Body}

D:/work/ODE.js/lib/ode.js, line 1075

set the angular velocity of the body by a vector

Name Type Description
x Number
y Number
z Number
Returns:
Type Description
ODE.Body

setLinearVel(x, y, z){ODE.Body}

D:/work/ODE.js/lib/ode.js, line 1066

set the linear velocity of the body by a vector

Name Type Description
x Number
y Number
z Number
Returns:
Type Description
ODE.Body

setMass(mass){ODE.Body}

D:/work/ODE.js/lib/ode.js, line 1138

set the mass of the body

Name Type Description
mass ODE.Mass
Returns:
Type Description
ODE.Body

setPosition(x, y, z){ODE.Body}

D:/work/ODE.js/lib/ode.js, line 1043

set the position of the body

Name Type Description
x Number
y Number
z Number
Returns:
Type Description
ODE.Body

setQuaternion(quat){ODE.Body}

D:/work/ODE.js/lib/ode.js, line 1059

set the rotation of the body by a quaternion

Name Type Description
quat ODE.Quaternion
Returns:
Type Description
ODE.Body

setRotation(rotation){ODE.Body}

D:/work/ODE.js/lib/ode.js, line 1052

set the rotation of the body by a Matrix3x3

Name Type Description
rotation ODE.Rotation
Returns:
Type Description
ODE.Body