BobBoundProbe troubles
BobBoundProbe troubles
BobBoundProbe troubles
BobBoundProbe troubles
BobBoundProbe troubles
BobBoundProbe troubles BobBoundProbe troubles BobBoundProbe troubles BobBoundProbe troubles BobBoundProbe troubles BobBoundProbe troubles BobBoundProbe troubles BobBoundProbe troubles
BobBoundProbe troubles BobBoundProbe troubles
BobBoundProbe troubles
Go Back  Xtreme Visual Basic Talk > > > > BobBoundProbe troubles


Reply
 
Thread Tools Display Modes
  #1  
Old 02-06-2004, 08:39 AM
drb2k2 drb2k2 is offline
Newcomer
 
Join Date: Feb 2004
Posts: 12
Default BobBoundProbe troubles


Hi all,
I want to use box bound probe to compute collisions between objects.
I have written a custom class whereby each object contains the vectors for its bouding box.
In my test program I have the tiger mesh and a box acting as the floor. I have written a function to test whether the two meshes intersect with the class as follows:
Code:
public function CheckCollisions() as boolean 

Return Geometry.BoxBoundProbe(ObjectMin, ObjectMax, (New Vector3(m_X, m_Y, m_Z)), (New Vector3(0, -1, 0))) 

end function
This function is being called from the tiger mesh object (which can be moved with the arrow keys). The ObjecMin and ObjectMax are the bounding box values for the floor. m_x, m_y, m_Z are the position co-ordinates for the tiger object. At the moment I am only trying to stop the tiger falling through the floor so i've given the direction vector a -1 value. However, the value returned is always false as in no collisions. I expect it has something to do with the look vector. But i can't figure it out. Any help would be much appreciated
Cheers
Dylan
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding Sound to Game Troubles Helpless Game Programming 1 10-15-2003 07:14 AM
SQL Statement Troubles verno_25_02 Database and Reporting 2 02-07-2003 05:49 PM
Replace troubles godonlyknows200 General 2 02-06-2003 03:34 PM
More Troubles of Usercontrol kind... Kaluriel General 7 12-30-2002 12:33 AM
Input# troubles Gamer X General 4 07-14-2001 10:50 PM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
BobBoundProbe troubles
BobBoundProbe troubles
BobBoundProbe troubles BobBoundProbe troubles
BobBoundProbe troubles
BobBoundProbe troubles
BobBoundProbe troubles BobBoundProbe troubles BobBoundProbe troubles BobBoundProbe troubles BobBoundProbe troubles BobBoundProbe troubles BobBoundProbe troubles
BobBoundProbe troubles
BobBoundProbe troubles
 
BobBoundProbe troubles
BobBoundProbe troubles
 
-->