You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
track.add({ mat4Model: mat4 }) // decompose a column-major model matrix into TRS
79
+
track.add([ spec, spec, ... ]) // bulk
80
80
```
81
81
82
82
`tanIn` is the incoming position tangent at this keyframe; `tanOut` is the outgoing tangent. When only one is given, the other mirrors it. When neither is given, centripetal Catmull-Rom tangents are auto-computed — identical to the default smooth behavior.
For matrix-based capture use `track.add({ mMatrix: eMatrix })` on a `PoseTrack` for full-fidelity TRS including roll, or `cam.capturePose()` for lookat-style capture.
157
+
For matrix-based capture use `track.add({ mat4Model: mat4Eye })` on a `PoseTrack` for full-fidelity TRS including roll, or `cam.capturePose()` for lookat-style capture.
158
158
159
159
`fov` (radians) animates perspective field of view.
160
160
`halfHeight` (world units) animates the vertical extent of an ortho frustum —
@@ -179,14 +179,14 @@ All tracks share the same transport API:
`out` is opt-in. When provided via `opts.out` the result is written into it (zero-alloc hot path). When omitted a fresh `p5.Vector` is allocated and returned. Return type matches `opts.out`.
313
313
314
314
```js
315
-
mapLocation([point], [opts]) // map a point between spaces
316
-
mapLocation([opts]) // input defaults to p5.Tree.ORIGIN
317
-
mapLocation() // ORIGIN, EYE → WORLD → p5.Vector
315
+
mapLocation([point], [opts]) // map a point between spaces
316
+
mapLocation([opts]) // input defaults to p5.Tree.ORIGIN
317
+
mapLocation() // ORIGIN, EYE → WORLD → p5.Vector
318
318
319
-
mapDirection([dir], [opts]) // map a direction between spaces
320
-
mapDirection([opts]) // input defaults to p5.Tree._k
321
-
mapDirection() // _k, EYE → WORLD → p5.Vector
319
+
mapDirection([dir], [opts]) // map a direction between spaces
320
+
mapDirection([opts]) // input defaults to p5.Tree._k
track.add({ mMatrix: mat4 }) // decompose a column-major model matrix into TRS
88
+
track.add([ spec, spec, ... ]) // bulk
89
89
```
90
90
91
91
`tanIn` is the incoming position tangent at this keyframe; `tanOut` is the outgoing tangent. When only one is given, the other mirrors it. When neither is given, centripetal Catmull-Rom tangents are auto-computed from neighboring keyframes.
@@ -100,16 +100,16 @@ track.add({ pos:[300,0,0] }) // auto tangents
100
100
`rot` sub-forms — all normalised internally:
101
101
102
102
```js
103
-
rot: [x,y,z,w] // raw quaternion
104
-
rot: { axis:[x,y,z], angle } // axis-angle
105
-
rot: { dir:[x,y,z], up?:[x,y,z] } // look direction (−Z forward)
Copy file name to clipboardExpand all lines: package.json
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
{
2
2
"name": "p5.tree",
3
-
"version": "0.0.34",
3
+
"version": "0.0.35",
4
4
"description": "Render pipeline for p5.js v2 — pose and camera interpolation, space transforms, frustum visibility, HUD, post-processing pipe, picking, and declarative control panels.",
0 commit comments