Post

 Resources 

Console


RE: Lucky's Collision Detection.. Adam Hoult (0 replies, 0 views) (2000-Jun-25)
-
Hey Soop, Well the MinX/Y/Z is obviously the smaller of the two, but depends on which coordinate system is being used. You should be using a Left Handed Cartesian coordinate system, which is the default in d3d (IM or RM) where X is -Value to +Value from left to Right, Y is -Value to +Value from bottom to top, and Z is -Value to +Value pointing from you into the screen. So the MinX,Y and Z should be the bottm left hand corner, closest to you (as these will all be the SMALLEST VALUES) and the Max X,Y and Z would be top right hand corner, furthest away from you. This is a normal system, used to store bounding boxes (all Octree/KD Tree and BSP rendering engines which i've ever seen (which is a lot =) Use only 6 values (Min X Y and Z, and Max X Y and Z) since there is no point in wasting memory storing 12 floating point numbers, 3 for each corner of the bounding box, as we don't need them. We can obtain all the values we need from just 6 of them. HTH Adam


-
Up One Level | Back to Forum


Copyright © 2002 - 2004 Eric Coleman, Peter Kuchnio , et. al.
There have been 120 visitors within the last 20 minutes
RSS News Feed