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새 값