IOrientable
public interface IOrientable
向きを持つエンティティはこのインターフェイスを実装しなければなりません。
メソッド
| メソッド | 説明 |
|---|---|
| getDirection() | エンティティが向いている方向を取得します。 |
| getTarget() | エンティティが見ている対象を取得します。 |
| setDirection(Vector3 value) | エンティティが向く方向を設定します。 |
| setTarget(Node value) | エンティティが見ている対象を設定します。 |
getDirection()
public abstract Vector3 getDirection()
エンティティが向いている方向を取得します。
Returns: Vector3 - the direction that the entity is looking at.
getTarget()
public abstract Node getTarget()
エンティティが見ている対象を取得します。
Returns: Node - the target that the entity is looking at.
setDirection(Vector3 value)
public abstract void setDirection(Vector3 value)
エンティティが向く方向を設定します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| value | Vector3 | 新しい値 |
setTarget(Node value)
public abstract void setTarget(Node value)
エンティティが見ている対象を設定します。
Parameters:
| パラメーター | 型 | 説明 |
|---|---|---|
| value | Node | 新しい値 |