IOrientable
public interface IOrientable
Orientable entities shall implement this interface.
Methods
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
value | Vector3 | New value |
setTarget(Node value)
public abstract void setTarget(Node value)
Sets the target that the entity is looking at.
Parameters:
Parameter | Type | Description |
---|---|---|
value | Node | New value |