Global point problems

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);

The localToGlobal () method coverts the relative coordinates to the global coordinates.
Also the x and y properties of the wheel shouldn’t change if you rotate the parent object.
You will likely have to use Trigonometry to work out where the wheel is.

e.g.,
wheelX = targetBuggy.localToGlobal(Math.sin(targetBuggy.rotation/180*Math.PI)targetBuggy.wheel1.y);
wheelY = targetBuggy.localToGlobal(-Math.cos(targetBuggy.rotation/180
Math.PI)*targetBuggy.wheel1.x);

not 100% sure if that will work, but something along those lines.