I can’t seem to get global points to work right in AS3. What am I doing wrong here?
As my targetBuggy rotates within the Stage>gameLevel… I need the exact locations of the wheels for a hitTest. The hitPointTest never moves up or down, and it should be tracking the wheels, even as the entire targetBuggy child rotates.
var pointLeftTest:Point = new Point(targetBuggy.x + targetBuggy.Wheel1.x,targetBuggy.y + targetBuggy.Wheel1.y + 8);
gameLevel.localToGlobal(pointLeftTest);
var hitPointTest:Boolean = levelHittest(pointLeftTest.x, pointLeftTest.y);