Quick Reference
Setup & Creation 1
| install() | Install. |
Checks (True / False) 1
| canSit() | Whether a model has the joints a seated rider is held by: hips, and each side's arm, hand, leg and foot. |
Actions 1
| release() | Gives every joint back to the motion, opens the hands and forgets the boarding. |
Updating & Drawing 1
| update() | Once per drawn frame for a boarded rider, after both models were animated: the hands onto the grips, the feet… |
Other 12
| point() | A rider point of a block in MODEL space at a drawn steer (-1 full left to 1 full right): name is seat, handL,… |
| joints() | The joints of a model by rig name, as the ragdoll finds them: from a holder's binding, else from the nodes th… |
| scratch() | The scratch a two-bone reach works in. |
| reachLimb() | A two-bone reach in closed form: upper and lower turn so end (the wrist, the ankle) lands on target, the midd… |
| fit() | The fit of a rider on a vehicle at a size (tiles along its longest side): per point how far it is from the ve… |
| fitSize() | The largest size, to a tenth of a tile, at which every rider reaches both grips with the torso leaned no more… |
| board() | Once per boarding: the joints by rig name, the limbs measured at rest, the reach in reserve, every scratch ob… |
| footReaches() | Whether the stand-side foot of a boarded rider reaches the ground at a stop (the vehicle then tips onto it). |
| seat() | The rider's world transform for this frame: the vehicle's whole attitude times the rider's own base turn, its… |
| perch() | A body that cannot be posed on a seat (no hips, arms and legs by name) is stood in it instead of sitting: its… |
| pass() | After the sync: the player's model seated on what it rides and held to its points. |
| passConvoy() | Pass convoy. |
Setup & Creation
install
static sourceRider.install()
Install.
Checks (True / False)
canSit
static sourceRider.canSit(holder)
Whether a model has the joints a seated rider is held by: hips, and each side's arm, hand, leg and foot.
Actions
release
static sourceRider.release(holder)
Gives every joint back to the motion, opens the hands and forgets the boarding.
Updating & Drawing
update
static sourceRider.update(holder, vehicleHolder)
Once per drawn frame for a boarded rider, after both models were animated: the hands onto the grips, the feet onto the rests or the stand-side foot onto the ground, the torso's lean, the chest and the head.
Details
Once per drawn frame for a boarded rider, after both models were animated: the hands onto the grips, the feet onto the rests or the stand-side foot onto the ground, the torso's lean, the chest and the head. It is worked out only when the bars' angle, the hold, the foot, the ground under a foot that is down, the vehicle's lean or the motion under it changed; otherwise the turns written last time are written again. True when the pose it wrote changed this frame.
Other
point
static sourceRider.point(block, seatIndex, name, steer, out)
A rider point of a block in MODEL space at a drawn steer (-1 full left to 1 full right): name is seat, handL, handR, footL or footR.
Details
A rider point of a block in MODEL space at a drawn steer (-1 full left to 1 full right): name is seat,
handL, handR, footL or footR. A point that follows a control is turned about the control's line by
the drawn angle (steering right swings the left grip ahead). out takes x, y, z. Null when the block has
no such point.
joints
static sourceRider.joints(holder)
The joints of a model by rig name, as the ragdoll finds them: from a holder's binding, else from the nodes themselves.
scratch
static sourceRider.scratch()
The scratch a two-bone reach works in.
reachLimb
static sourceRider.reachLimb(upper, lower, end, target, pole, scratch)
A two-bone reach in closed form: upper and lower turn so end (the wrist, the ankle) lands on target, the middle joint off the line toward pole.
Details
A two-bone reach in closed form: upper and lower turn so end (the wrist, the ankle) lands on target,
the middle joint off the line toward pole. Reads the world matrices of the three joints and their parents
as they are (the caller keeps them current) and writes only the two joints' own turns; afterwards
scratch.endParent is the world turn of end's parent, scratch.elbow where the middle joint is and
scratch.share the distance asked for as a share of the limb. Answers false when the target lies farther
than the limb (which is then straight along the line to it) or nearer than it folds. Creates nothing.
fit
static sourceRider.fit(riderObject, vehicleObject, block, size)
The fit of a rider on a vehicle at a size (tiles along its longest side): per point how far it is from the vehicle's surface, the reach as a share of the limb with the bars centered and at full lock, how far short it is and which way (model space) the point would have to move; the torso's lean; whether the stand-side foot reaches the ground at a stop.
Details
The fit of a rider on a vehicle at a size (tiles along its longest side): per point how far it is from the
vehicle's surface, the reach as a share of the limb with the bars centered and at full lock, how far short it
is and which way (model space) the point would have to move; the torso's lean; whether the stand-side foot
reaches the ground at a stop. riderObject is a built instance at rest and at its bound size, or a holder
{ object, binding }; vehicleObject a built instance, or a box { size: [x, y, z] } (then no surface is read).
fitSize
static sourceRider.fitSize(riderObjects, vehicleObject, block, kind)
The largest size, to a tenth of a tile, at which every rider reaches both grips with the torso leaned no more than FIT_LEAN degrees and, for a kind that leans, puts the stand-side foot on the ground.
Details
The largest size, to a tenth of a tile, at which every rider reaches both grips with the torso leaned no more
than FIT_LEAN degrees and, for a kind that leans, puts the stand-side foot on the ground. limitedBy is the
index in riderObjects of the rider that set the limit (-1 when none did) and reason what stopped it
("reach", "foot"). kind is a kind's name or its row of Reactor3D.Vehicles.KINDS.
board
static sourceRider.board(holder, character, object, vehicleHolder)
Once per boarding: the joints by rig name, the limbs measured at rest, the reach in reserve, every scratch object.
Details
Once per boarding: the joints by rig name, the limbs measured at rest, the reach in reserve, every scratch
object. The state is kept on holder.rider. Null for a model that cannot sit (the caller stands it in the seat: perch).
footReaches
static sourceRider.footReaches(holder)
Whether the stand-side foot of a boarded rider reaches the ground at a stop (the vehicle then tips onto it).
seat
static sourceRider.seat(holder, character, object, vehicleHolder)
The rider's world transform for this frame: the vehicle's whole attitude times the rider's own base turn, its Hips joint HIPS_OVER of its height over the seat point.
Details
The rider's world transform for this frame: the vehicle's whole attitude times the rider's own base turn,
its Hips joint HIPS_OVER of its height over the seat point. While a hop runs (character._rrMount) it is
the arc between the on-foot place and the seat. Called inside the placement (Reactor3D.Vehicles.pose) and
again by this file's pass after the sync. True when it wrote the transform.
perch
static sourceRider.perch(holder, vehicleHolder)
A body that cannot be posed on a seat (no hips, arms and legs by name) is stood in it instead of sitting: its middle at the seat point, upright, facing as its placement left it.
Details
A body that cannot be posed on a seat (no hips, arms and legs by name) is stood in it instead of sitting: its middle at the seat point, upright, facing as its placement left it. True when it was placed.
pass
static sourceRider.pass(scene)
After the sync: the player's model seated on what it rides and held to its points.
Details
After the sync: the player's model seated on what it rides and held to its points. One test on a map with no ride.
passConvoy
static sourceRider.passConvoy(instances, player)
Pass convoy.