/* attempt to deal with prototype, bootstrap, jquery conflicts */ /* for dropdown menus */

Jump to content

Image of the Day

Today's #ScreenshotSaturday features Face Your Fears from Turtle Roc ... #virtualrealityshop #mobilevr #vrshop https://t.co/3qhSNAVNOZ
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net's newsletters to receive the latest updates and exclusive content.


Sign up now

Help with Bullet and box selection

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
No replies to this topic

#1 Xerion   Members   

123
Like
0Likes
Like

Posted 27 January 2014 - 06:24 AM

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






Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.