Home Reference Source
public class | source

TransformComponent

Extends:

Component → TransformComponent

Static Member Summary

Static Public Members
public static get
public static get
public static get

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public get
public get
public get
public get

matrix: *

public set
public get
public get
public get
public set
public get
public get

rotate: *

public set
public get
public get
public set
public get

scale: *

public set
public get
public set
public get
public get
public get
Private Members
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private
private

Method Summary

Public Methods
public
public
public

headToDirection(fromVec: Vector3, toVec: Vector3)

public
public

setTransform(translate: *, rotate: *, scale: *, quaternion: *, matrix: *)

Set multiple transform information at once.

Private Methods
private
private
private
private
private

Inherited Summary

From class Component
public static get
public get
private
private
public
public
public

$load()

public

$mount()

public
public
public
public

registerDependency(component: Component, isMust: boolean)

Static Public Members

public static get componentTID: number source

Override:

Component#componentTID

public static get maxCount: number source

public static get renderedPropertyCount source

Public Constructors

public constructor() source

Override:

Component#constructor

Public Members

public get guaternionInner: Quaternion source

public get inverseMatrix: * source

public get inverseMatrixInner: * source

public get matrix: * source

public set matrix: Matrix44 source

public get matrixInner: * source

public get normalMatrix: * source

public get normalMatrixInner: * source

public set quaternion: Quaternion source

public get quaternion: * source

public get rotate: * source

public set rotate: Vector3 source

public get rotateInner: * source

public get rotateMatrix33: * source

public set rotateMatrix33: Matrix33 source

public get scale: * source

public set scale: Vector3 source

public get scaleInner: * source

public set translate: Vector3 source

public get translate: * source

public get translateInner: * source

public get updateCount: * source

Private Members

private _dependentAnimationComponentId: * source

private _invMatrix: Matrix44 source

private _is_euler_angles_updated: boolean source

private _is_inverse_trs_matrix_updated: boolean source

private _is_normal_trs_matrix_updated: boolean source

private _is_quaternion_updated: boolean source

private _is_scale_updated: boolean source

private _is_translate_updated: boolean source

private _is_trs_matrix_updated: boolean source

private _matrix: Matrix44 source

private _normalMatrix: Matrix44 source

private _quaternion: Quaternion source

private _rotate: Vector3 source

private _scale: Vector3 source

private _translate: Vector3 source

private _updateCountAsElement: number source

Public Methods

public $create() source

Override:

Component#$create

public $updateLogic() source

Override:

Component#$updateLogic

public headToDirection(fromVec: Vector3, toVec: Vector3) source

Params:

NameTypeAttributeDescription
fromVec Vector3
toVec Vector3

public setRotationFromNewUpAndFront(UpVec: Vector3, FrontVec: Vector3) source

Params:

NameTypeAttributeDescription
UpVec Vector3
FrontVec Vector3

public setTransform(translate: *, rotate: *, scale: *, quaternion: *, matrix: *) source

Set multiple transform information at once. By using this method, we reduce the cost of automatically updating other transform components inside this class. This method may be useful for animation processing and so on.

The transform components of these arguments must not be mutually discrepant. for example. The transform components of matrix argument (translate, rotate/quaternion, scale) must be equal to translate, rotate, scale, quaternion arguments. And both rotate and quaternion arguments must be same rotation. If there is an argument passed with null or undefined, it is interpreted as unchanged.

Params:

NameTypeAttributeDescription
translate *
rotate *
scale *
quaternion *
matrix *

Private Methods

private __updateRotation() source

private __updateScale() source

private __updateTransform() source

private __updateTranslate() source

private _needUpdate() source