models
Builds every glider style (the leaf included), ring and vent from runtime meshes and runtime PBR materials (nothing imported, every peer builds locally): `build(style, parent)`, `register(style, fn, mount)` for your own style, `setOpenness(built, t)` for the unfold animation, plu…
glideKit.models
Builds every glider style (the leaf included), ring and vent from runtime meshes and runtime PBR materials (nothing imported, every peer builds locally): build(style, parent), register(style, fn, mount) for your own style, setOpenness(built, t) for the unfold animation, plus small quaternion, material (mat) and mesh (mesh, torusMesh, tri, quad) helpers.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2strict
q(x: number, y: number, z: number, w: number) → Quat
| arg | type | description |
|---|---|---|
| x | number | |
| y | number | |
| z | number | |
| w | number |
qmul(a: Quat, b: Quat) → Quat
| arg | type | description |
|---|---|---|
| a | Quat | |
| b | Quat |
qconj(a: Quat) → Quat
| arg | type | description |
|---|---|---|
| a | Quat |
qaxis(ax: number, ay: number, az: number, angle: number) → Quat
| arg | type | description |
|---|---|---|
| ax | number | |
| ay | number | |
| az | number | |
| angle | number |
qrot(a: Quat, v: vector) → vector
| arg | type | description |
|---|---|---|
| a | Quat | |
| v | vector |
qslerp(a: Quat, b: Quat, t: number) → Quat
| arg | type | description |
|---|---|---|
| a | Quat | |
| b | Quat | |
| t | number |
qtable(a: any) → Quat
| arg | type | description |
|---|---|---|
| a | any |
mat(key: string, s: MatSpec) → any
A runtime PBR material, cached by key.
| arg | type | description |
|---|---|---|
| key | string | |
| s | MatSpec |
builder( ) → Builder
pushTri(b: Builder, a: vector, c: vector, d: vector) → void
| arg | type | description |
|---|---|---|
| b | Builder | |
| a | vector | |
| c | vector | |
| d | vector |
tri(b: Builder, a: vector, c: vector, d: vector, twoSided: boolean?) → void
Add a triangle; `twoSided` also adds its back face so it lights from both sides.
| arg | type | description |
|---|---|---|
| b | Builder | |
| a | vector | |
| c | vector | |
| d | vector | |
| twoSided | boolean? |
quad(b: Builder, a: vector, c: vector, d: vector, e: vector, twoSided: boolean?) → void
| arg | type | description |
|---|---|---|
| b | Builder | |
| a | vector | |
| c | vector | |
| d | vector | |
| e | vector | |
| twoSided | boolean? |
mesh(key: string, build: (Builder) → void
Upload a builder as a runtime mesh, cached by key.
| arg | type | description |
|---|---|---|
| key | string | |
| build | (Builder |
torusMesh(minor: number, seg: number?, sides: number?) → any
A torus mesh lying in the XY plane (its axis +Z), major radius 1, minor radius `minor`.
| arg | type | description |
|---|---|---|
| minor | number | |
| seg | number? | |
| sides | number? |
p(i: number, j: number) → vector
| arg | type | description |
|---|---|---|
| i | number | |
| j | number |
v3(t: any) → vector
| arg | type | description |
|---|---|---|
| t | any |
part(parent: any, name: string, model: any, material: any, pos: any?, scale: any?, rot: Quat?) → any
Spawn a local (non-replicated) part under `parent` drawing `model` (a mesh handle or builtin name) in `material`.
| arg | type | description |
|---|---|---|
| parent | any | |
| name | string | |
| model | any | |
| material | any | |
| pos | any? | |
| scale | any? | |
| rot | Quat? |
group(parent: any, name: string, pos: any?, rot: Quat?) → any
| arg | type | description |
|---|---|---|
| parent | any | |
| name | string | |
| pos | any? | |
| rot | Quat? |
rod(parent: any, name: string, a: vector, b: vector, thick: number, material: any) → any
A rod (thin box) from a to b in the parent's frame.
| arg | type | description |
|---|---|---|
| parent | any | |
| name | string | |
| a | vector | |
| b | vector | |
| thick | number | |
| material | any |
LERP(a: vector, b: vector, t: number) → vector
| arg | type | description |
|---|---|---|
| a | vector | |
| b | vector | |
| t | number |
track(b: Built, e: any, mode: string) → void
| arg | type | description |
|---|---|---|
| b | Built | |
| e | any | |
| mode | string |
wingsuit(parent: any) → void
wingsuit: arm and leg membranes in a bold two-tone, white edge piping
| arg | type | description |
|---|---|---|
| parent | any |
hangGlider(parent: any) → void
hang glider: striped delta sail, aluminium tubes, A-frame
| arg | type | description |
|---|---|---|
| parent | any |
paraglider(parent: any) → void
paraglider: ram-air canopy of two-tone cells high overhead, lines, harness
| arg | type | description |
|---|---|---|
| parent | any |
rib(i: number, z: number, thick: number) → vector
| arg | type | description |
|---|---|---|
| i | number | |
| z | number | |
| thick | number |
umbrella(parent: any) → void
umbrella: scalloped eight-panel canopy, wooden J handle
| arg | type | description |
|---|---|---|
| parent | any |
ring(a: number, t: number) → vector
| arg | type | description |
|---|---|---|
| a | number | |
| t | number |
cape(parent: any) → void
cape: a crimson cape tied at the collar and wrists, gold trim
| arg | type | description |
|---|---|---|
| parent | any |
p(i: number, j: number) → vector
| arg | type | description |
|---|---|---|
| i | number | |
| j | number |
birdWings(parent: any) → void
bird wings: layered feathers, cream with golden tips
| arg | type | description |
|---|---|---|
| parent | any |
feather(bb: Builder, base: vector, dir: vector, side: vector, len: number, w: number) → void
| arg | type | description |
|---|---|---|
| bb | Builder | |
| base | vector | |
| dir | vector | |
| side | vector | |
| len | number | |
| w | number |
jetWing(parent: any) → void
jet wing: carbon delta with four glowing thrusters
| arg | type | description |
|---|---|---|
| parent | any |
paperCrane(parent: any) → void
paper crane: folded paper bird you ride, with crisp creases
| arg | type | description |
|---|---|---|
| parent | any |
leaf(parent: any) → void
leaf: a giant cupped leaf held overhead by its curving stem, midrib and veins
| arg | type | description |
|---|---|---|
| parent | any |
surf(u: number, v: number) → vector
| arg | type | description |
|---|---|---|
| u | number | |
| v | number |
cameraNear(cam: vector, center: vector, rot: Quat, half: vector, margin: number?) → boolean
Is the camera at `cam` close enough to an occluder that it would fill the view? The occluder is an ellipsoid centred at `center`, turned by `rot` (a quaternion), with half-sizes `half`; true inside it grown by `margin` (default 2.5 m) on every axis.
| arg | type | description |
|---|---|---|
| cam | vector | |
| center | vector | |
| rot | Quat | |
| half | vector | |
| margin | number? |
build(style: string, parent: any) → Built
Build a style's model under `parent`. Unknown styles build the wingsuit.
| arg | type | description |
|---|---|---|
| style | string | |
| parent | any |
register(style: string, fn: (parent: any, colors: any?) → void
Register your own style builder: fn(parent) -> Built (see the existing builders).
| arg | type | description |
|---|---|---|
| style | string | |
| fn | (parent: any, colors: any? |
setOpenness(b: Built, t: number) → void
Set a built model's unfold amount 0..1 (0 folded away, 1 fully open).
| arg | type | description |
|---|---|---|
| b | Built | |
| t | number |
Quat = { x: number, y: number, z: number, w: number }MatSpec = {Builder = { pos: { number }, nrm: { number }, idx: { number }, n: number }Built = {Sub-parts
Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.
Problems
Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.
agent_score is exposed.+ 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".
Scoped to this part · feeds back into the world's score.