Contains a list of MorphTargets, a combined delta AABB and some associated data.
RefCountedObjectnew Morph(
targets: MorphTarget[],
graphicsDevice: GraphicsDevice,
options?: {
preferHighPrecision: boolean;
}): Morph
Create a new Morph instance.
A list of morph targets.
GraphicsDevice
The graphics device used to manage this morph target.
Object for passing optional arguments.
boolean = false
True if high precision storage should be preferred. This is faster to create and allows higher precision, but takes more memory and might be slower to render. Defaults to false.
RefCountedObject.constructor
preferHighPrecision: boolean
get refCount(): number
Gets the current reference count.
number
RefCountedObject.refCount
get targets(): MorphTarget[]
Gets the array of morph targets.
decRefCount(): void
Decrements the reference counter.
void
RefCountedObject.decRefCount
destroy(): void
Frees video memory allocated by this object.
void
incRefCount(): void
Increments the reference counter.
void
RefCountedObject.incRefCount