Using ComputeBoundingBox function

Posted on 2005-03-05
Medium Priority
Last Modified: 2010-10-05
Hi, I am trying to work out how to use the ComputeBoundingBox function from DirectX 8 in Visual Basic 6. I basically have a mesh representing a car and am trying to create a box that will move with the car so that collision detection can be done. Unfortunatly I don't really have a clue how the function works and where I get the parameters from.
Any help or practical example of the function would be much appreciated.
Question by:FRIBBLE1
LVL 22

Accepted Solution

DarkoLord earned 1000 total points
ID: 13469888

As far as I can see from this, you need to pass it an array with a list of vertices and number of vertices... Then the function returns two vectors representing 2 opposite corners of the resulting bounding box


Author Comment

ID: 13470853

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

616 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question