79161143

Date: 2024-11-06 01:45:12
Score: 0.5
Natty:
Report link

The following line changes the world coordinate of the sphere but not its local position relative to the Vuforia image target.

sphere.transform.Position = targetTransform.position + localPosition;

You can replace it with:

sphere.transform.localPosition = targetTransform.position + localPosition;
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Ying Li - MSFT