abstractnew ODE.Joint.Prototypes.ParametersJoint()
Extends
Members
-
readonlytypeODE.Joint.Types
-
get the type of this joint
Methods
-
Attach the joint to some new bodies. If the joint is already attached, it will be detached from the old bodies first. To attach this joint to only one body, set body1 or body2 to zero - a zero body refers to the static environment. Setting both bodies to zero puts the joint into "limbo", i.e. it will have no effect on the simulation. Some joints, like hinge-2 need to be attached to two bodies to work.
Name Type Description b1
ODE.Body the first body
b2
ODE.Body the second body
Returns:
Type Description ODE.Joint -
inherited destroy()
D:/work/ODE.js/lib/ode.js, line 645 -
clear memory space in LLVM heap
-
Return the bodies that this joint connects. If idx is 0 the first body will be returned, corresponding to the first body argument of ODE.Joint.Prototypes.BaseJoint#attach. If idx is 1 the second body will be returned, corresponding to the second body argument of ODE.Joint.Prototypes.BaseJoint#attach.. If one of these returned body IDs is zero, the joint connects the other body to the static environment. If both body IDs are zero, the joint is in ``limbo'' and has no effect on the simulation.
Name Type Description idx
Number Returns:
Type Description ODE.Body | null -
getParam(parameter){Number}
D:/work/ODE.js/lib/ode.js, line 743 -
get limit/motor parameter
Name Type Description parameter
ODE.Joint.Parameters Returns:
Type Description Number -
inherited getPointer(){Number}
D:/work/ODE.js/lib/ode.js, line 638 -
get offset address in heap memory
Returns:
Type Description Number -
setParam(parameter, val){ODE.Joint}
D:/work/ODE.js/lib/ode.js, line 735 -
set limit/motor parameter
Name Type Description parameter
ODE.Joint.Parameters val
Number Returns:
Type Description ODE.Joint