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:

パラメーター説明
valueVector3新しい値

setTarget(Node value)

public abstract void setTarget(Node value)

エンティティが見ている対象を設定します。

Parameters:

パラメーター説明
valueNode新しい値