Skip to content

@modoki/engine / index / AutoRig2DOptions

Interface: AutoRig2DOptions ​

Skinning ​

axis? ​

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


boneCount? ​

optional boneCount?: number

Bone count for the auto chain (>=2). Omit to derive from the sprite.


cellSize? ​

optional cellSize?: number


cols? ​

optional cols?: number


height ​

height: number


id? ​

optional id?: string


isInside? ​

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

Parameters ​

u ​

number

v ​

number

Returns ​

boolean


pivotX? ​

optional pivotX?: number


pivotY? ​

optional pivotY?: number


rows? ​

optional rows?: number


sprite ​

sprite: string


weights? ​

optional weights?: AutoWeightOptions


width ​

width: number

Built with Modoki.