Hi there,
I´m looking for some way to select mutliple units (e. g. 3D-Models). Is there some built-in functionality or does someone know an easy way to do that (with mouse-key events etc.)?
I´m sorry for the stupid title, but I don´t know how to call that. To make things clear: If you press the left button of your mouse and move it (left button still down) you see a quadrangle. That´s what I´m looking for.
Thanks a lot.
Greetings,
badday
Select multiple units with some sort of 2D box
If you have a 3d scene, you actually need to convert that 2d box on screen into a pyramid (view frustum). The top of the frustum is the camera position, and the corners are the points on the box. Then you just search through the scene looking for nodes that are inside the view frustum.
This has been discussed before. You should be able to search for frustum and picking and you should find something relevant.
Travis
This has been discussed before. You should be able to search for frustum and picking and you should find something relevant.
Travis
I think you might be looking for this post by rogerborg:
http://irrlicht.sourceforge.net/phpBB2/ ... ode+select
He has also posted a number of other useful snippets on rts movement arrow and moving groups, etc, so you might want to search for rogerborg postings if the above link is not exactly what you are looking for.
http://irrlicht.sourceforge.net/phpBB2/ ... ode+select
He has also posted a number of other useful snippets on rts movement arrow and moving groups, etc, so you might want to search for rogerborg postings if the above link is not exactly what you are looking for.