Namespace in reactor_fight_tactical.js
Rope
7 public functions in 4 groups · show internal (_) functions
Quick Reference
Setup & Creation 2
| makeHead() | Makes the head. |
| make() | Make. |
Actions 1
| place() | The line from a grappler's muzzle (a hand without one: the right hand, or the chest without a rigged model) t… |
Updating & Drawing 1
| update() | Update. |
Other 3
| beats() | Each grappler's beats as they come: the aim, the shot ("fly"), the hook biting ("tight"), the pull, the climb… |
| grapplerOf() | A wearer's grappler (the Character Builder's 'Grapple spike' part): the mesh, and which of its vertices are t… |
| shape() | The line's tube from from to to, hanging sag (tiles) at its middle as a slack line does (the drop is fullest… |
Setup & Creation
makeHead
static sourceRope.makeHead(scene)
Makes the head.
make
static sourceRope.make(scene)
Make.
Actions
place
static sourceRope.place(line, character, hook, head)
The line from a grappler's muzzle (a hand without one: the right hand, or the chest without a rigged model) to the hook, as much of it as is out, and the harpoon on its end.
Details
The line from a grappler's muzzle (a hand without one: the right hand, or the chest without a rigged model) to the hook, as much of it as is out, and the harpoon on its end. Returns the wearer's loaded harpoon mesh, to be hidden while the shot is out, or null.
Updating & Drawing
update
static sourceRope.update(spriteset)
Update.
Other
beats
static sourceRope.beats(fight, P)
Each grappler's beats as they come: the aim, the shot ("fly"), the hook biting ("tight"), the pull, the climb over (a mantle) and the end ("done").
Details
Each grappler's beats as they come: the aim, the shot ("fly"), the hook biting ("tight"), the pull, the climb
over (a mantle) and the end ("done"). Each plays the grapple's sound for it (rrGrapple.sounds: fire, bite,
pull) and is told on the runtime feed as fightGrappleBeat, which the cinematic camera films.
grapplerOf
static sourceRope.grapplerOf(holder)
A wearer's grappler (the Character Builder's 'Grapple spike' part): the mesh, and which of its vertices are the point and the tail, found once from its shape (the two ends of the shaft; the point is the end the barbs crowd).
shape
static sourceRope.shape(mesh, from, to, sag, radius)
The line's tube from from to to, hanging sag (tiles) at its middle as a slack line does (the drop is fullest midway and none at the ends), radius thick.
Details
The line's tube from from to to, hanging sag (tiles) at its middle as a slack line does (the drop is
fullest midway and none at the ends), radius thick.