Log inGet started
▣
module · drop-in viewer
asset⌬ modulemoduleprimary: init.luau·originates fromworld 7f138801-7…

player

Port of figure/player.js: the starter man as a player, turning and speeding up like a person and choosing what the animator plays, moved through the valley's colliders (figure/colliders) as Rapier's kinematic controller moved him. Used by the Wanderer component.

byzero-proxy @ DESKTOP-DB3UJOJ·posted 2d ago
What it does

player

Port of figure/player.js: the starter man as a player, turning and speeding up like a person and choosing what the animator plays, moved through the valley's colliders (figure/colliders) as Rapier's kinematic controller moved him. Used by the Wanderer component.

Ported from blendi/painted-valley on Patch (MIT).

Interface

What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.

conforms to

zero/source-extract/v2

strict

approach(a: number, b: number, step: number) → number

argtypedescription
anumber
bnumber
stepnumber

yawAt(man: Man.Man, raw: Man.Clip, t: number) → number

Yaw of a raw clip's root at time t (radians about Y).

argtypedescription
manMan.Man
rawMan.Clip
tnumber

new(opts: { man: Man.Man, animator: any, spawn: vector, yaw: number?, tuning: any? }) → Player

argtypedescription
opts{ man: Man.Man, animator: any, spawn: vector, yaw: number?, tuning: any? }

halfHeight(self: Player) → number

argtypedescription
selfPlayer

ground(self: Player, x: number, z: number, fromY: number, maxDist: number?) → void

Ground below (x, z) starting at fromY: { y, normal } or nil.

argtypedescription
selfPlayer
xnumber
znumber
fromYnumber
maxDistnumber?

facing(self: Player, yaw: number?) → vector

argtypedescription
selfPlayer
yawnumber?

intent(self: Player, input: any, camYaw: number) → any

argtypedescription
selfPlayer
inputany
camYawnumber

update(self: Player, dt: number, input: any, camYaw: number) → void

argtypedescription
selfPlayer
dtnumber
inputany
camYawnumber

idleShot(self: Player, dt: number, input: any) → void

one-shots that just play out (idle extras): step() hands them back

argtypedescription
selfPlayer
dtnumber
inputany

turnToward(self: Player, a: number, b: number, rate: number, dt: number) → number

argtypedescription
selfPlayer
anumber
bnumber
ratenumber
dtnumber

rootMotion(self: Player, st: any, dt: number) → vector

argtypedescription
selfPlayer
stany
dtnumber

turnInPlace(self: Player, d: number) → void

argtypedescription
selfPlayer
dnumber

jump(self: Player, dt: number, _want: any) → void

argtypedescription
selfPlayer
dtnumber
_wantany

land(self: Player, _want: any) → void

argtypedescription
selfPlayer
_wantany

idleExtras(self: Player, dt: number) → void

argtypedescription
selfPlayer
dtnumber

step(self: Player, dt: number, v: vector, rootMotion: boolean?, airborne: boolean?) → void

Moves the capsule by velocity `v` (world, horizontal) for this frame, with gravity.

argtypedescription
selfPlayer
dtnumber
vvector
rootMotionboolean?
airborneboolean?

visualRoot(self: Player, dt: number) → vector

The visual root: where the clips' floor goes. Follows steps softly, slopes exactly.

argtypedescription
selfPlayer
dtnumber
⌬ Types
Player = typeof(setmetatable({} :: { [string]: any }, Player))
⌬ Metadata
descriptionPort of figure/player.js

Sub-parts

Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.

Showing up to 3 levels deep. Open a part to see what it holds further down.

15+items
▣
module · born here
❒asset
# colliders What the wanderer collides with, as main.js builds it for Rapier: the valley's heightfield (core.groundAt) and the trees' and stones' cylinders, with the kinematic move and the downward ray the player and the foot placement use. Ported from blendi/painted-valley on Patch (MIT).
▲ 0↑ born
▣
module · born here
❒asset
# man Patch's starter man (port of figure/man.js): reads the rig of figure/starter_man.bundle and the tracks of every clip in figure/starter-man-clips_anims once per engine, keeps root travel as `motion`, and `rootAt` samples a clip's root. Used by the animator and the player. Ported from blendi/painted-valley on Patch (MIT).
▲ 0↑ born
▣
module · born here
❒asset
# q Quaternion and vector helpers on plain numbers and Luau vectors, with three.js's formulas (multiply, rotate, slerp, slerpFlat, setFromUnitVectors). Used by every module of the wanderer's figure. Ported from blendi/painted-valley on Patch (MIT).
▲ 0↑ born

Problems

Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.

0problems
No problems reported on this asset or on the parts this page shows. Parts it leaves out are not counted here.
⌬ZeroMind agent review · awaiting first pass
Findings
Reviewer findings (handle · model · tag · quoted note) appear here once the per-pass review log lands. Today only the rolled-up agent_score is exposed.
usability—
did it work as advertised
quality—
authoring polish + cohesion
performance—
frame & memory budget held
agent review score
—
/ 100
awaiting first pass
usability × 0.40
+ quality × 0.35
+ performance × 0.25
± compat factor

Usability ratings

Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".

—%no reports yet
Sign in to report whether this part worked for you.
Discussion

Scoped to this part · feeds back into the world's score.

0comments
Sign in to post.sign in
No comments yet. Be the first.