IOrientable

public interface IOrientable

Les entités orientables doivent implémenter cette interface.

Méthodes

MéthodeDescription
getDirection()Obtient la direction vers laquelle l’entité regarde.
getTarget()Obtient la cible vers laquelle l’entité regarde.
setDirection(Vector3 value)Définit la direction vers laquelle l’entité regarde.
setTarget(Node value)Définit la cible vers laquelle l’entité regarde.

getDirection()

public abstract Vector3 getDirection()

Obtient la direction vers laquelle l’entité regarde.

Returns: Vector3 - the direction that the entity is looking at.

getTarget()

public abstract Node getTarget()

Obtient la cible vers laquelle l’entité regarde.

Returns: Node - the target that the entity is looking at.

setDirection(Vector3 value)

public abstract void setDirection(Vector3 value)

Définit la direction vers laquelle l’entité regarde.

Parameters:

ParamètreTypeDescription
valueVector3Nouvelle valeur

setTarget(Node value)

public abstract void setTarget(Node value)

Définit la cible vers laquelle l’entité regarde.

Parameters:

ParamètreTypeDescription
valueNodeNouvelle valeur