| 构造器 | 说明 |
|---|---|
TransformComponent() |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
Vector3 |
getPosition() |
Obtains the position of the current entity relative to the parent entity.
|
Quaternion |
getRotation() |
Obtains the rotation of the current entity relative to the parent entity.
|
Vector3 |
getScale() |
Obtains the scale of the current entity relative to the parent entity.
|
void |
setPosition(Vector3 position) |
Sets the position of the current entity relative to the parent entity.
|
void |
setRotation(Quaternion rotation) |
Sets the rotation of the current entity relative to the parent entity.
|
void |
setScale(Vector3 scale) |
Sets the scale of the current entity relative to the parent entity.
|
public Vector3 getPosition()
public void setPosition(Vector3 position)
position - Indicates the position to set.public Quaternion getRotation()
public void setRotation(Quaternion rotation)
rotation - Indicates the rotation angle to set.public Vector3 getScale()
public void setScale(Vector3 scale)
scale - Indicates the scale to set.