- Home /
 
How should I move a sprite in a direction based on the rotation of a child?
I want to move hexagons around on a grid in the direction of an arrow. 
I set the rotation of the arrow gameobject (a child of the hexagon):
 movementDirection = Vector3.zero;
 movementDirection.z = Random.Range (0, 6) * 60;
 arrow.transform.localEulerAngles = movementDirection;
 
               How should I move the parent object in the direction the arrow is pointing?
 
                 
                arrows-directions.jpg 
                (13.4 kB) 
               
 
              
               Comment
              
 
               
              Your answer