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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

765 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