IOrientable

public interface IOrientable

Orientable entities shall implement this interface.

Methods

MethodDescription
getDirection()Gets the direction that the entity is looking at.
getTarget()Gets the target that the entity is looking at.
setDirection(Vector3 value)Sets the direction that the entity is looking at.
setTarget(Node value)Sets the target that the entity is looking at.

getDirection()

public abstract Vector3 getDirection()

Gets the direction that the entity is looking at.

Returns: Vector3

getTarget()

public abstract Node getTarget()

Gets the target that the entity is looking at.

Returns: Node

setDirection(Vector3 value)

public abstract void setDirection(Vector3 value)

Sets the direction that the entity is looking at.

Parameters:

ParameterTypeDescription
valueVector3New value

setTarget(Node value)

public abstract void setTarget(Node value)

Sets the target that the entity is looking at.

Parameters:

ParameterTypeDescription
valueNodeNew value