Inaccuracies while trying to implement box select
Posted: Thu Oct 13, 2016 4:19 am
I'm attempting to implement box selection of objects. I've created a btCollisionWorld, and I'm calling contactTest() with a btConvexHullShape constructed from the corners of the selection box unprojected to the camera's near and far planes.
Now, if I place the first corner of the selection box just on the edge of an object, the object will flicker between being selected or not as I drag the other corner of the selection box around. Any suggestions for eliminating this behavior? Or is there a better approach I should be using?
Now, if I place the first corner of the selection box just on the edge of an object, the object will flicker between being selected or not as I drag the other corner of the selection box around. Any suggestions for eliminating this behavior? Or is there a better approach I should be using?