IOrientable
public interface IOrientable
Le entità orientabili devono implementare questa interfaccia.
Metodi
| Metodo | Descrizione |
|---|---|
| getDirection() | Ottiene la direzione verso cui l’entità sta guardando. |
| getTarget() | Ottiene il bersaglio verso cui l’entità sta guardando. |
| setDirection(Vector3 value) | Imposta la direzione verso cui l’entità sta guardando. |
| setTarget(Node value) | Imposta il bersaglio verso cui l’entità sta guardando. |
getDirection()
public abstract Vector3 getDirection()
Ottiene la direzione verso cui l’entità sta guardando.
Returns: Vector3 - the direction that the entity is looking at.
getTarget()
public abstract Node getTarget()
Ottiene il bersaglio verso cui l’entità sta guardando.
Returns: Node - the target that the entity is looking at.
setDirection(Vector3 value)
public abstract void setDirection(Vector3 value)
Imposta la direzione verso cui l’entità sta guardando.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| value | Vector3 | Nuovo valore |
setTarget(Node value)
public abstract void setTarget(Node value)
Imposta il bersaglio verso cui l’entità sta guardando.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| value | Node | Nuovo valore |