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 | 新值 |