feat(scripting): add transform orientation overloads
This commit is contained in:
@@ -231,11 +231,26 @@ namespace XCEngine
|
||||
InternalCalls.Transform_Rotate(GameObjectUUID, ref eulers, (int)relativeTo);
|
||||
}
|
||||
|
||||
public void Rotate(Vector3 axis, float angle)
|
||||
{
|
||||
Rotate(axis, angle, Space.Self);
|
||||
}
|
||||
|
||||
public void Rotate(Vector3 axis, float angle, Space relativeTo)
|
||||
{
|
||||
InternalCalls.Transform_RotateAxisAngle(GameObjectUUID, ref axis, angle, (int)relativeTo);
|
||||
}
|
||||
|
||||
public void LookAt(Vector3 worldPosition)
|
||||
{
|
||||
InternalCalls.Transform_LookAt(GameObjectUUID, ref worldPosition);
|
||||
}
|
||||
|
||||
public void LookAt(Vector3 worldPosition, Vector3 worldUp)
|
||||
{
|
||||
InternalCalls.Transform_LookAtWithUp(GameObjectUUID, ref worldPosition, ref worldUp);
|
||||
}
|
||||
|
||||
public Vector3 TransformPoint(Vector3 point)
|
||||
{
|
||||
InternalCalls.Transform_TransformPoint(GameObjectUUID, ref point, out Vector3 transformedPoint);
|
||||
|
||||
Reference in New Issue
Block a user