Quantcast
Channel: Babylon.js
Viewing all articles
Browse latest Browse all 388

How to create a rectangular box?

$
0
0

When creating a box, there's the assumption that all sides are of equal length.

 

However, for a rubberband selection in an RTS I'd like to create a rectangular box on the fly (from the screen down to the ground) and then check intersections with all units on the screen to select them.

How could I create a rectangular box, or is there even a better way to do rubberband selection in BabylonJS?


Viewing all articles
Browse latest Browse all 388

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>