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