
Disfigure classes are used to define figures.
Class. Creates a man figure. The Optional parameter defines figure height in meters. Default height 1.80.
Class. Creates a woman figure. The optional parameter defines figure height in meters. Default height 1.70.
Class. Creates a child figure. The optional parameter defines figure height in meters. Default height 1.35.
Disfigure figures have the same structure independent on their appearance.
Vector3 property. Gets or sets the position of a figure in 3D space.
Numeric properties. Get or set the x, y or z coordinate of a figure in 3D space.
Object property. Gets or sets the posture of a figure. The posture is a JavaScript object with specific structure.
String read-only property. Gets the posture of a figure as string.
Method. Sets the posture of a figure to be a lerp blend of postureA and postureB based on coefficient k∈[0,1].
Body part properties. The bodypart is the name of a body part, one of these:
Each body part has the same set of properties, although some are deactivated. For example, a knee can rotate around X axis and partly around Z axis.
Numeric property. Gets or sets the rotation angle in degrees around the X “shoulder” axis.
Numeric property. Gets or sets the rotation angle in degrees around the Y “head” axis.
Numeric property. Gets or sets the rotation angle in degrees around the Z “chest” axis.
Function. Sets animation function called once every frame. The callback function receives the time in miliseconds.
Function. Generates uniformly distributed random number in interval [min,max). By default the optional parameters are min=-1 and max=1.
Function. Generates an oscilating sine sequence of numbers in interval [min,max]. By default the optional parameters are offset=0, min=-1 and max=1. Parameter offset shifts the oscillation forward or backward in time.
Function. Generates a chaotic oscilating sequence of numbers in interval [min,max]. By default the optional parameters are offset=0, min=-1 and max=1. Internally uses a simplex noise function. Parameter offset shifts the sequence across the time, i.e. two generators with different offsets produce different sequences.
Global animate event. Triggered once on every frame.
Local animate event. Triggered once on every frame for each figure.
Animate event property. Time in miliseconds in global and local animate events.
Animate event property. Figure for which a local animate event is triggered.
Global array. Contains all created figures. Usually used to traverse them and do some operation on all figures.