Skip to content

API / IKConstraintData

Class: IKConstraintData

Defined in: model/ConstraintData.ts:51

Internal

Extends

  • ConstraintData

Constructors

Constructor

ts
new IKConstraintData(): IKConstraintData;

Returns

IKConstraintData

Inherited from

ts
ConstraintData.constructor

Properties

bendPositive

ts
bendPositive: boolean;

Defined in: model/ConstraintData.ts:57


bone

ts
bone: BoneData;

Defined in: model/ConstraintData.ts:37

Inherited from

ts
ConstraintData.bone

hashCode

ts
readonly hashCode: number;

Defined in: core/BaseObject.ts:156

A unique identification number assigned to the object.

Inherited from

ts
ConstraintData.hashCode

name

ts
name: string;

Defined in: model/ConstraintData.ts:33

Inherited from

ts
ConstraintData.name

order

ts
order: number;

Defined in: model/ConstraintData.ts:32

Inherited from

ts
ConstraintData.order

root

ts
root: BoneData;

Defined in: model/ConstraintData.ts:36

Inherited from

ts
ConstraintData.root

scaleEnabled

ts
scaleEnabled: boolean;

Defined in: model/ConstraintData.ts:56


target

ts
target: BoneData;

Defined in: model/ConstraintData.ts:35

Inherited from

ts
ConstraintData.target

type

ts
type: ConstraintType;

Defined in: model/ConstraintData.ts:34

Inherited from

ts
ConstraintData.type

weight

ts
weight: number;

Defined in: model/ConstraintData.ts:58

Methods

returnToPool()

ts
returnToPool(): void;

Defined in: core/BaseObject.ts:167

Clear the object and return it back to object pool。

Returns

void

Inherited from

ts
ConstraintData.returnToPool

borrowObject()

ts
static borrowObject<T>(objectConstructor: () => T): T;

Defined in: core/BaseObject.ts:136

Get an instance of the specify class from object pool.

Type Parameters

Type Parameter
T extends BaseObject

Parameters

ParameterTypeDescription
objectConstructor() => TThe specify class.

Returns

T

Inherited from

ts
ConstraintData.borrowObject

clearPool()

ts
static clearPool(objectConstructor: typeof BaseObject): void;

Defined in: core/BaseObject.ts:111

Clear the cached instances of a specify object pool.

Parameters

ParameterTypeDefault valueDescription
objectConstructortypeof BaseObjectnullSpecify class. (Clear all cached instances if not set)

Returns

void

Inherited from

ts
ConstraintData.clearPool

setMaxCount()

ts
static setMaxCount(objectConstructor: typeof BaseObject, maxCount: number): void;

Defined in: core/BaseObject.ts:72

Set the maximum cache count of the specify object pool.

Parameters

ParameterTypeDescription
objectConstructortypeof BaseObjectThe specify class. (Set all object pools max cache count if not set)
maxCountnumberMax count.

Returns

void

Inherited from

ts
ConstraintData.setMaxCount

toString()

ts
static toString(): string;

Defined in: model/ConstraintData.ts:52

Returns

string

Overrides

ts
ConstraintData.toString

Released under the MIT License.