Skip to content

Commit dd30296

Browse files
committed
Fixed local position to world position bug
1 parent b9f215d commit dd30296

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Assets/SilVR/4D-Chess-Udon/Scripts/PlayerController.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public void MoveCursorForPlayer()
7272
Vector3 fing_pos = player.GetBonePosition(HumanBodyBones.RightIndexProximal);
7373
offset = fing_pos - hand_pos;
7474

75-
zCast_left.transform.localPosition = target_pos_left;
75+
zCast_left.transform.position = target_pos_left;
7676
zCast_left.transform.position -= new Vector3(0.0f, 0.0325f, 0.0f);
7777
//SnapCursor();
7878
if (!SnapCursor(zCast_left))
@@ -82,7 +82,7 @@ public void MoveCursorForPlayer()
8282
zCast_left.transform.position += new Vector3(0.0f, 0.0325f, 0.0f);
8383

8484

85-
zCast_right.transform.localPosition = target_pos_right;
85+
zCast_right.transform.position = target_pos_right;
8686
zCast_right.transform.position -= new Vector3(0.0f, 0.0325f, 0.0f);
8787
//SnapCursor();
8888
if (!SnapCursor(zCast_right))

0 commit comments

Comments
 (0)