Skip to content

Commit f5b8f5b

Browse files
committed
Print global position rather than local position
1 parent 3081df0 commit f5b8f5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PracticeModManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,9 +296,9 @@ Text NewGrabbedObjectText()
296296

297297
string GetPlayerTextString()
298298
{
299-
Vector3 position = playerMotor.transform.localPosition;
299+
Vector3 position = playerMotor.transform.position;
300300
Vector3 velocity = playerMotor.GetComponent<CharacterController>().velocity;
301-
Vector3 rotation = playerMotor.transform.localRotation.eulerAngles;
301+
Vector3 rotation = playerMotor.transform.rotation.eulerAngles;
302302
float scale = playerMotor.transform.localScale.x;
303303
string dynamicInfo = "";
304304

0 commit comments

Comments
 (0)