Skip to main content

knuth-rand

source

Types


knuth-rand-state

knuth-rand-state: structuresource
Fields
seed: int64

Functions


knuth-rand-advance-seed

knuth-rand-advance-seed() => intsource

knuth-rand-init

knuth-rand-init(seed: int) => intsource

knuth-rand-int-range

knuth-rand-int-range(min: int, max: int) => intsource

knuth-rand-next

knuth-rand-next(bits: int) => intsource

knuth-rand-next-float

knuth-rand-next-float() => floatsource

knuth-rand-next-int

knuth-rand-next-int() => intsource

scf-time-to-int64

scf-time-to-int64() => intsource
pack system time into 64-bits for randomization purposes.

Variables


*knuth-rand-state*

*knuth-rand-state*: knuth-rand-statesource

pc-anim-util

source

Functions


cspace-map-joints

cspace-map-joints(proc: process-drawable, cspace-idx: int, include-parent?: symbol, func: function, p0: object, p1: object) => symbolsource
run func on all joints' bones that are children of cspace-idx
if include-parent? = #t then also apply to that joint.

matrix*!-bone-callback

matrix*!-bone-callback(the-bone: bone, is-parent?: symbol, mtx: matrix, a: object) => matrixsource
apply a transform matrix to a bone.

matrix-diagonal!

matrix-diagonal!(out: matrix, value: float) => matrixsource
clear matrix and set its diagonal to a value.

process-drawable-joint-callback-pc

process-drawable-joint-callback-pc(obj: process-drawable) => nonesource
custom animation callback for any process drawable

scale-joints

scale-joints(obj: process-drawable, cspace-idx: int, scale-children?: symbol, scale: vector) => structuresource
scale a joint (cspace-idx) in an actor. if scale-children? = #t, also scales all child joints.

target-joint-callback-pc

target-joint-callback-pc(obj: target) => nonesource
custom animation callback for *target*

Variables


*cheat-big-head-scale*

*cheat-big-head-scale*: vectorsource

*cheat-huge-head-scale*

*cheat-huge-head-scale*: vectorsource

*cheat-small-head-scale*

*cheat-small-head-scale*: vectorsource