A physical joint.
setLimit(low, high, softness, bias_factor, relaxation_factor);
Limit linear or angular movement of the joint.
low | (float) minimum angle of motion, in degrees. |
high | (float) maximum angle of motion, in degrees. |
softness | (float) 0->1, recommend ~0.8->1. Describes % of limits where movement is free. Beyond this softness %, the limit is gradually enforced until the “hard” (1.0) limit is reached. |
bias_factor | (float) 0->1, recommend 0.3 +/-0.3 or so. Strength with which constraint resists zeroth order (angular, not angular velocity) limit violation. |
relaxation_factor | (float) 0->1, recommend to stay near 1. The lower the value, the less the constraint will fight velocities which violate the angular limits. |
N/A
setLimit(linear_lower, linear_upper, angular_lower, angular_upper);
Limit linear or angular movement of the joint.
linear_lower | (float) lower limit of linear movement, expressed in world units. |
linear_upper | (float) upper limit of linear movement, expressed in world units. |
angular_lower | (float) lower limit of angular movement, expressed in degrees. |
angular_upper | (float) upper limit of angular movement, expressed in degrees. |
N/A
setLimit(x, y, z, softness, bias_factor, relaxation_factor);
Limit linear or angular movement of the joint.
x | (float) rotational limit, in degrees, for x-axis. |
y | (float) rotational limit, in degrees, for y-axis. |
z | (float) rotational limit, in degrees, for z-axis. |
softness | (float) 0->1, recommend ~0.8->1. Describes % of limits where movement is free. Beyond this softness %, the limit is gradually enforced until the “hard” (1.0) limit is reached. |
bias_factor | (float) 0->1, recommend 0.3 +/-0.3 or so. Strength with which constraint resists zeroth order (angular, not angular velocity) limit violation. |
relaxation_factor | (float) 0->1, recommend to stay near 1. The lower the value, the less the constraint will fight velocities which violate the angular limits. |
N/A
configureAngularMotor(which, low_limit, high_limit, velocity, max_force);
Configure linear and angular motor of this joint.
which | (int) which angular motor to configure - 0,1,2 match x,y,z. |
low_limit | (float) lower limit of the motor. |
high_limit | (float) upper limit of the motor. |
velocity | (float) target velocity. |
max_force | (float) maximum force the motor can apply. |
N/A