Hi, I've got a strange situation where:

var screenPos:ScreenVertex=world.camera.screen(obj3D);
trace ("1:"+screenPos)            // 1:new ScreenVertex
(-49.61870339233873, -406.57275400634956, 644.4843658996576)

var playerPos:ScreenVertex=world.camera.screen(playerObj);
trace ("2:"+playerPos)             // 2:new ScreenVertex
(252.88942855011769, 144.02638600552004, 365.5745165621339)

trace ("3:"+screenPos)             // 3:new ScreenVertex
(252.88942855011769, 144.02638600552004, 365.5745165621339)

The first variable changes, when calling the function again...? Why
does the trace function add the new keyword before?

The obj3d is an "empty" object 3d with only a position set and added
to the scene, could this create this strange behavior?

Thanks for any help!

/David

Reply via email to