be.yildizgames.common.gameobject.Deletable, be.yildizgames.common.gameobject.Movablepublic abstract class Node extends Object implements be.yildizgames.common.gameobject.Movable
| Modifier | Constructor | Description |
|---|---|---|
protected |
Node(be.yildizgames.common.gameobject.Movable parent) |
|
protected |
Node(be.yildizgames.common.model.EntityId id,
be.yildizgames.common.gameobject.Movable parent) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
delete() |
Delete the node and attached objects.
|
protected abstract void |
deleteImpl() |
Delete the node and attached objects.
|
be.yildizgames.common.geometry.Point3D |
getAbsoluteDirection() |
|
be.yildizgames.common.geometry.Point3D |
getAbsolutePosition() |
|
static Node |
getById(be.yildizgames.common.model.EntityId id) |
Get a node by its Id.
|
abstract be.yildizgames.common.geometry.Point3D |
getDirection() |
|
abstract be.yildizgames.common.geometry.Quaternion |
getOrientation() |
|
abstract be.yildizgames.common.geometry.Point3D |
getPosition() |
|
abstract void |
hide() |
Set all object attached to the node visible.
|
abstract be.yildizgames.common.geometry.Point3D |
rotate(float yaw,
float pitch) |
Rotate the node on X and Y axis.
|
abstract void |
rotate(float quatX,
float quatY,
float quatZ,
float quatW) |
Rotate the node with a quaternion values.
|
void |
scale(float scale) |
Scale the node.
|
abstract void |
scale(float scaleX,
float scaleY,
float scaleZ) |
Scale the node.
|
abstract void |
setDirection(float dirX,
float dirY,
float dirZ) |
Set the node direction.
|
void |
setDirection(be.yildizgames.common.geometry.Point3D direction) |
Set the node direction.
|
abstract void |
setPosition(be.yildizgames.common.geometry.Point3D position) |
Set the node position.
|
void |
setVisible(boolean visible) |
Set the objects attached to the node visible or invisible.
|
abstract void |
show() |
Set all object attached to the node visible.
|
abstract be.yildizgames.common.geometry.Point3D |
translate(float moveX,
float moveY,
float moveZ) |
Translate the node in a direction.
|
protected Node(be.yildizgames.common.model.EntityId id,
be.yildizgames.common.gameobject.Movable parent)
protected Node(be.yildizgames.common.gameobject.Movable parent)
public static Node getById(be.yildizgames.common.model.EntityId id)
id - Id to get.public abstract be.yildizgames.common.geometry.Point3D getPosition()
getPosition in interface be.yildizgames.common.gameobject.Movablepublic abstract void setPosition(be.yildizgames.common.geometry.Point3D position)
setPosition in interface be.yildizgames.common.gameobject.Movableposition - Node new position.public final void scale(float scale)
scale - Scale factor.public abstract void scale(float scaleX,
float scaleY,
float scaleZ)
scaleX - Width scale factor.scaleY - Height scale factor.scaleZ - Depth scale factor.public abstract be.yildizgames.common.geometry.Point3D translate(float moveX,
float moveY,
float moveZ)
moveX - Translation X value.moveY - Translation Y value.moveZ - Translation Z value.public abstract void setDirection(float dirX,
float dirY,
float dirZ)
setDirection in interface be.yildizgames.common.gameobject.MovabledirX - Node direction X value.dirY - Node direction Y value.dirZ - Node direction Z value.public abstract be.yildizgames.common.geometry.Point3D getDirection()
getDirection in interface be.yildizgames.common.gameobject.Movablepublic final void setDirection(be.yildizgames.common.geometry.Point3D direction)
setDirection in interface be.yildizgames.common.gameobject.Movabledirection - Node new direction.public final void setVisible(boolean visible)
visible - true to set the objects attached to the node visible, false to hide them.public abstract void show()
public abstract void hide()
public abstract be.yildizgames.common.geometry.Point3D rotate(float yaw,
float pitch)
yaw - Rotation on X axis value.pitch - Rotation on Y axis value.public abstract void rotate(float quatX,
float quatY,
float quatZ,
float quatW)
quatX - Rotation X value.quatY - Rotation Y value.quatZ - Rotation Z value.quatW - Rotation W value.public abstract be.yildizgames.common.geometry.Quaternion getOrientation()
public final be.yildizgames.common.geometry.Point3D getAbsolutePosition()
getAbsolutePosition in interface be.yildizgames.common.gameobject.Movablepublic final be.yildizgames.common.geometry.Point3D getAbsoluteDirection()
getAbsoluteDirection in interface be.yildizgames.common.gameobject.Movablepublic final void delete()
delete in interface be.yildizgames.common.gameobject.Deletableprotected abstract void deleteImpl()
Copyright © 2014–2018. All rights reserved.