constraint
: {distance
(target: GameObj, opt: DistanceConstraintOpt): DistanceConstraintCompA distance constraint
param
target- The object to keep within distance off
param
opt- Options
returns
DistanceConstraintComp
translation
(target: GameObj, opt: TranslationConstraintOpt): TranslationConstraintCompA translation constraint
param
target- The object to copy the translation from
param
opt- Options
returns
TranslationConstraintComp
rotation
(target: GameObj, opt: RotationConstraintOpt): RotationConstraintCompA rotation constraint
param
target- The object to copy the rotation from
param
opt- Options
returns
RotationConstraintComp
scale
(target: GameObj, opt: ScaleConstraintOpt): ScaleConstraintCompA scale constraint
param
target- The object to copy the scale from
param
opt- Options
returns
ScaleConstraintComp
transform
(target: GameObj, opt: TransformConstraintOpt): TransformConstraintCompA transform constraint
param
target- The object to copy the transform from
param
opt- Options
returns
TransformConstraintComp