Quantcast
Channel: Community | MonoGame - Latest topics
Viewing all articles
Browse latest Browse all 6821

What method should I use for 3D picking several objects at once?

$
0
0

@Morgan_Sundin wrote:

Hi, I made a function for selecting/picking one 3D object but what method could I use to select several.
Like in 3D real time strategy games.

For one object I'm using a Ray and a BoundingSphere and that function is working like a charm.

pickRay.Intersects(sphere).... etc.

But what if I'm holding down the mouse button to create a square selecting several objects within that square?
Could I still use Ray/Rays for this? Or what would be a better approach?

Regards, Morgan

Thanks in advance

Posts: 3

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles