one stop for all game coders..
| mouse in 3dWorld |
|
|
| Written by CR Team | |||||
| Saturday, 01 August 2009 08:27 | |||||
|
How do you go about using mouse in 3d World ?
MoveCursor Xtra : Well one good spot to start looking for is the Move Cursor shockwave Xtra. This is a great help to get your cursor on sprite and 3d world aligned at the same point in the stage. With the above xtra used. You can then make use of the following methods to move between the sprite and the 3d world:
ModelUnderLoc: Along with the above xtra you can also use the modelUnderLoc camera property to get the models in the direction vector w.r.t the 3d world camera.
If you want to speed up the process, try using the rayCastClosest() and rayCastAll() methods found within the physics engine. This will also allow you to sort rigidbodies/models by distance.
|