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القيمة الجديدة