Function

constraint

: {

distance

(target: GameObj, opt: DistanceConstraintOpt): DistanceConstraintComp

A distance constraint

param target- The object to keep within distance off

param opt- Options

returns DistanceConstraintComp

translation

(target: GameObj, opt: TranslationConstraintOpt): TranslationConstraintComp

A translation constraint

param target- The object to copy the translation from

param opt- Options

returns TranslationConstraintComp

rotation

(target: GameObj, opt: RotationConstraintOpt): RotationConstraintComp

A rotation constraint

param target- The object to copy the rotation from

param opt- Options

returns RotationConstraintComp

scale

(target: GameObj, opt: ScaleConstraintOpt): ScaleConstraintComp

A scale constraint

param target- The object to copy the scale from

param opt- Options

returns ScaleConstraintComp

transform

(target: GameObj, opt: TransformConstraintOpt): TransformConstraintComp

A transform constraint

param target- The object to copy the transform from

param opt- Options

returns TransformConstraintComp

bone

(minAngle?: number, maxAngle?: number): {

minAngle

: number

maxAngle

: number

setAngles

(minAngle?: number, maxAngle?: number): void
}

ik

(target: GameObj, opt: IKConstraintOpt): IKConstraintComp
}
kaplay logo

Components

Miscalenous