DH3DObject
DH3DObject basic class
Constructor Summary
Public Constructor | ||
public |
constructor |
Method Summary
Public Methods | ||
public |
addMotionCallback(func: *, time: *, state: *) |
|
public |
addMoveCallback(func: Function): number set callback function for each move |
|
public |
animate(elapsedTime: *) |
|
public |
|
|
public |
get animating state |
|
public |
getAnimationSpeed(): float get animation speed |
|
public |
getAnimationTime(): float get animation time |
|
public |
get Animator object |
|
public |
getAutoDirection(): * |
|
public |
getDirection(): * |
|
public |
getDynamicSkinArray(): * |
|
public |
get loop state |
|
public |
getMaxSpeed(): * |
|
public |
getMirror(): * |
|
public |
get Model object |
|
public |
get Motion object |
|
public |
|
|
public |
get object position |
|
public |
getReflectionMode(): * |
|
public |
get Renderer object |
|
public |
get quaternion for rotation |
|
public |
getSkinArray(): * |
|
public |
get object speed |
|
public |
getState(): * |
|
public |
getTexture(): * |
|
public |
move(elapsedTime: float): void move object |
|
public |
removeMotionCallback(func: *, time: *, state: *) |
|
public |
removeMoveCallback(func: Function): number remove callback function for each move |
|
public |
render() |
|
public |
renderMirror(reflectionObjectArray: *) |
|
public |
setAnimating(animating: boolean): void set animating state |
|
public |
setAnimationSpeed(speed: float): void set animation speed |
|
public |
setAnimationTime(time: float): void set animation time |
|
public |
setAnimator(animator: Animator): void set Animator object |
|
public |
setAutoDirection(autoDirection: boolean) |
|
public |
setDirection(direction: *) |
|
public |
set loop state |
|
public |
setMaxSpeed(maxSpeed: *) |
|
public |
setMirror(flag: *) |
|
public |
set Model object |
|
public |
set Motion object |
|
public |
setMotionWithBlending(motion: Motion, blendCount: float): void set Motion object to blend with current motion |
|
public |
setPosition(x: Vector3 | float, y: float, z: float): void set object position |
|
public |
setReflectionMode(flag: *) |
|
public |
setRenderer(renderer: Renderer): void set Renderer object |
|
public |
set quaternion for rotation |
|
public |
setRotateAxis(axis: *, rotAngle: *) |
|
public |
setScale(x: *, y: *, z: *) |
|
public |
set object speed |
|
public |
setState(state: *) |
|
public |
|
Public Constructors
Public Methods
public addMotionCallback(func: *, time: *, state: *) source
Params:
Name | Type | Attribute | Description |
func | * | ||
time | * | ||
state | * |
public addMoveCallback(func: Function): number source
set callback function for each move
Params:
Name | Type | Attribute | Description |
func | Function | callback which is called each frame |
public animate(elapsedTime: *) source
Params:
Name | Type | Attribute | Description |
elapsedTime | * |
public clearMotionCallback() source
public getAnimationSpeed(): float source
get animation speed
Return:
float | animation speed: normal speed is 1.0 |
public move(elapsedTime: float): void source
move object
Params:
Name | Type | Attribute | Description |
elapsedTime | float | elapsed time (seconds) from previous frame |
Return:
void |
public removeMotionCallback(func: *, time: *, state: *) source
Params:
Name | Type | Attribute | Description |
func | * | ||
time | * | ||
state | * |
public removeMoveCallback(func: Function): number source
remove callback function for each move
Params:
Name | Type | Attribute | Description |
func | Function | callback which is called each frame |
public render() source
public renderMirror(reflectionObjectArray: *) source
Params:
Name | Type | Attribute | Description |
reflectionObjectArray | * |
public setAnimating(animating: boolean): void source
set animating state
Params:
Name | Type | Attribute | Description |
animating | boolean | true: enable animation, false: disable animation |
Return:
void |
public setAnimationSpeed(speed: float): void source
set animation speed
Params:
Name | Type | Attribute | Description |
speed | float | animation speed: normal speed is 1.0 |
Return:
void |
public setAnimationTime(time: float): void source
set animation time
Params:
Name | Type | Attribute | Description |
time | float | animation time (seconds) |
Return:
void |
public setAnimator(animator: Animator): void source
set Animator object
Params:
Name | Type | Attribute | Description |
animator | Animator | Animator object |
Return:
void |
public setAutoDirection(autoDirection: boolean) source
Params:
Name | Type | Attribute | Description |
autoDirection | boolean |
|
public setDirection(direction: *) source
Params:
Name | Type | Attribute | Description |
direction | * |
public setLoop(loop: boolean): void source
set loop state
Params:
Name | Type | Attribute | Description |
loop | boolean | true: enable loop, false: disable loop |
Return:
void |
public setMaxSpeed(maxSpeed: *) source
Params:
Name | Type | Attribute | Description |
maxSpeed | * |
public setMirror(flag: *) source
Params:
Name | Type | Attribute | Description |
flag | * |
public setModel(model: Model): void source
set Model object
Params:
Name | Type | Attribute | Description |
model | Model | Model object. Set null to delete object |
Return:
void |
public setMotion(motion: Motion): void source
set Motion object
Params:
Name | Type | Attribute | Description |
motion | Motion | Motion object. Set null to delete object |
Return:
void |
public setMotionWithBlending(motion: Motion, blendCount: float): void source
set Motion object to blend with current motion
Params:
Name | Type | Attribute | Description |
motion | Motion | Motion object to blend |
|
blendCount | float | number of frames to complete transition |
Return:
void |
public setPosition(x: Vector3 | float, y: float, z: float): void source
set object position
Params:
Name | Type | Attribute | Description |
x | Vector3 | float | object position (Vector3 object or X value) |
|
y | float | Y value |
|
z | float | Z value |
Return:
void |
public setReflectionMode(flag: *) source
Params:
Name | Type | Attribute | Description |
flag | * |
public setRenderer(renderer: Renderer): void source
set Renderer object
Params:
Name | Type | Attribute | Description |
renderer | Renderer | Renderer object |
Return:
void |
public setRotate(x: Vector4 | float, y: float, z: float, w: float): void source
set quaternion for rotation
Params:
Name | Type | Attribute | Description |
x | Vector4 | float | quaternion (Vector4 or X value) |
|
y | float | Y value |
|
z | float | Z value |
|
w | float | W value |
Return:
void |
public setRotateAxis(axis: *, rotAngle: *) source
Params:
Name | Type | Attribute | Description |
axis | * | ||
rotAngle | * |
public setScale(x: *, y: *, z: *) source
Params:
Name | Type | Attribute | Description |
x | * | ||
y | * | ||
z | * |
public setSpeed(x: Vector3 | float, y: float, z: float): void source
set object speed
Params:
Name | Type | Attribute | Description |
x | Vector3 | float | object speed (Vector3 object or X value) |
|
y | float | Y value of speed |
|
z | float | Z value of speed |
Return:
void |
public setState(state: *) source
Params:
Name | Type | Attribute | Description |
state | * |