danbuis / BBDGamesLib

Code base to rapidly make Java based programs using OpenGL to render to the screen
0 stars 0 forks source link

Mouse selection #128

Closed danbuis closed 3 years ago

danbuis commented 3 years ago

Ability to do a rudimentary mouse selection.

Does an Axis Aligned Box selection, with some pretty basic assumptions, mostly based on location and scale, but its not very precise.

danbuis commented 3 years ago

It looks like the current implementation, cribbed from a tutorial assumes objects are axis aligned cubes of size 1, so it works relatively well in that limited scenario.

I'm going to shelve this branch for now and work on a way to get Mesh objects to make their verts and such accessible, we can use that then to connect to the Intersectionf.IntersectRayTriangle() or something of that ilk.