IOrientable

public interface IOrientable

Entitas yang dapat diputar harus mengimplementasikan antarmuka ini.

Metode

MetodeDeskripsi
getDirection()Mendapatkan arah yang dilihat entitas.
getTarget()Mendapatkan target yang dilihat entitas.
setDirection(Vector3 value)Mengatur arah yang dilihat entitas.
setTarget(Node value)Mengatur target yang dilihat entitas.

getDirection()

public abstract Vector3 getDirection()

Mendapatkan arah yang dilihat entitas.

Returns: Vector3 - the direction that the entity is looking at.

getTarget()

public abstract Node getTarget()

Mendapatkan target yang dilihat entitas.

Returns: Node - the target that the entity is looking at.

setDirection(Vector3 value)

public abstract void setDirection(Vector3 value)

Mengatur arah yang dilihat entitas.

Parameters:

ParameterTipeDeskripsi
valueVector3Nilai baru

setTarget(Node value)

public abstract void setTarget(Node value)

Mengatur target yang dilihat entitas.

Parameters:

ParameterTipeDeskripsi
valueNodeNilai baru