Skip to content

@modoki/engine / index / SuggestBonesOptions

Interface: SuggestBonesOptions ​

Skinning ​

axis? ​

optional axis?: "auto" | "x" | "y"

Force the chain axis; 'auto' (default) picks the longer sprite dimension.


count? ​

optional count?: number

Number of joints (>=2). Omit to derive from the axis length (~1 per 96px, 2..6).


height ​

height: number


isInside? ​

optional isInside?: (u, v) => boolean

Optional UV-space (0..1) coverage predicate — bones span the covered extent along the axis instead of the whole rect.

Parameters ​

u ​

number

v ​

number

Returns ​

boolean


pivotX? ​

optional pivotX?: number


pivotY? ​

optional pivotY?: number


width ​

width: number

Built with Modoki.