feanor91
14-11-2008 12:37:36
Hi
I Want to test intersection of 2 bounding box to determine if an objet is in or out another; and I want that my first objetc be out the second so I make this :
I see the "CV" getting out the "Sol" but it didn't stop when it's bounding box is out of "sol" so
return always true...WHY?
Therefore my bounding box is bigger than my object. Another time WHY?
I Want to test intersection of 2 bounding box to determine if an objet is in or out another; and I want that my first objetc be out the second so I make this :
CVNode.SetPosition(0, 0, 0)
BoundingBoxCV = CVEntity.BoundingBox
BoundingBoxSol = SolEntity.BoundingBox
CVNode.ShowBoundingBox = True
SolNode.ShowBoundingBox = True
myOgre.OgreUpdate()
Dim y As Integer = 0
While BoundingBoxCV.Intersects(BoundingBoxSol)
y -= 1
CVNode.SetPosition(0, 0, y)
myOgre.OgreUpdate()
End While
Return y
I see the "CV" getting out the "Sol" but it didn't stop when it's bounding box is out of "sol" so
BoundingBoxCV.Intersects(BoundingBoxSol)
return always true...WHY?
Therefore my bounding box is bigger than my object. Another time WHY?