new ODE.Mass(pointer)
| Name | Type | Description |
|---|---|---|
pointer |
Number |
optional
heap memory pointer to cast into Mass |
Methods
-
destroy()
D:/work/ODE.js/lib/ode.js, line 227 -
clear memory space in LLVM heap
-
getPointer(){Number}
D:/work/ODE.js/lib/ode.js, line 220 -
get offset address in heap memory
Returns:
Type Description Number -
setCapsule(density, direction, radius, length){ODE.Mass}
D:/work/ODE.js/lib/ode.js, line 274 -
Set the mass parameters to represent a Capsule of the given parameters and density, with the center of mass at (0,0,0)
Name Type Description densityNumber directionNumber The capsule's long axis is oriented along the body's x, y or z axis according to the value of direction (1 = X axis , 2 = Y axis, 3 = Z axis).
radiusNumber The radius of the capsule
lengthNumber The length of the capsule
Returns:
Type Description ODE.Mass -
setCapsuleTotal(total_mass, direction, radius, length){ODE.Mass}
D:/work/ODE.js/lib/ode.js, line 284 -
Set the mass parameters to represent a Capsule of the given parameters and mass, with the center of mass at (0,0,0)
Name Type Description total_massNumber directionNumber The capsule's long axis is oriented along the body's x, y or z axis according to the value of direction (1 = X axis , 2 = Y axis, 3 = Z axis).
radiusNumber The radius of the capsule
lengthNumber The length of the capsule
Returns:
Type Description ODE.Mass -
setParameters(mass, cgx, cgy, cgz, I11, I22, I33, I12, I13, I23){ODE.Mass}
D:/work/ODE.js/lib/ode.js, line 240 -
fill all mass parameters
Name Type Description massNumber total mass of the rigid body.
cgxNumber center of gravity position in body frame.
cgyNumber center of gravity position in body frame.
cgzNumber center of gravity position in body frame.
I11Number 3x3 inertia tensor matrix in body frame.
I22Number 3x3 inertia tensor matrix in body frame.
I33Number 3x3 inertia tensor matrix in body frame.
I12Number 3x3 inertia tensor matrix in body frame.
I13Number 3x3 inertia tensor matrix in body frame.
I23Number 3x3 inertia tensor matrix in body frame.
Returns:
Type Description ODE.Mass -
setSphere(density, radius){ODE.Mass}
D:/work/ODE.js/lib/ode.js, line 257 -
Set the mass parameters to represent a sphere of the given radius and density, with the center of mass at (0,0,0) relative to the body.
Name Type Description densityNumber radiusnumber Returns:
Type Description ODE.Mass -
setSphereTotal(total_mass, radius){ODE.Mass}
D:/work/ODE.js/lib/ode.js, line 266 -
Set the mass parameters to represent a sphere of the given radius and mass, with the center of mass at (0,0,0) relative to the body.
Name Type Description total_massNumber radiusNumber Returns:
Type Description ODE.Mass -
setZero(){ODE.Mass}
D:/work/ODE.js/lib/ode.js, line 233 -
clear all mass parameters
Returns:
Type Description ODE.Mass