Jump to content
  • Advertisement
Sign in to follow this  
Xerion

Help with Bullet and box selection

This topic is 1638 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello all,

 

I followed the bullet demo for picking object and was able to successfully add it to my pet project.

 

What I am trying to do and failing is to have a rubber band selection in my opengl window.

My though are on this line. A rubber band is pretty much a 2d box so I can easily get the 4 cornes and similalry to the demo for single click picking I can get the near and the far points for each of my corners. Thus I will have 8 points or a frustrum if you wanna call it as such.

 

How can I use bullet to get all my objects that reside in that frustrum ?  

I have been reading that I can do it either via the btPairCachingGhostObject or btGhostObject.

 

Anyone can provide a simple example ?

 

Thanks in advance

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!