?
Solved

Using ComputeBoundingBox function

Posted on 2005-03-05
2
Medium Priority
?
325 Views
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.
0
Comment
Question by:FRIBBLE1
2 Comments
 
LVL 22

Accepted Solution

by:
DarkoLord earned 1000 total points
ID: 13469888
http://msdn.microsoft.com/archive/default.asp?url=/archive/en-us/directx9_m_Summer_04/directx/ref/ns/microsoft.directx.direct3d/c/geometry/m/computeboundingbox3.asp

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

Darko
0
 
LVL 1

Author Comment

by:FRIBBLE1
ID: 13470853
tar
0

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