Game Development Community


#1
03/02/2005 (12:28 pm)
@Robert: Why? The camera is 2D, not 3D.

The mouse coordinates are passed in world-units so you can use them directly in the world with no conversion. T2D avoids the idea of a pixel for good reasons, it's confusing and needs conversion.

Just use the mouse callbacks in the fxSceneWindow2D like onMouseMove, onMouseDown etc.

You can use these coordinates with the pick functions like pickPoint, pickArea and pickRay.

- Melv.