Tao.Ode SDK Documentation

Ode.dBoxTouchesBox Method 

Given boxes (p1,R1,side1) and (p2,R2,side2), return 1 if they intersect or 0 if not. p is the center of the box, R is the rotation matrix for the box, and side is a vector of x/y/z side lengths.

[Visual Basic]
Public Shared Function dBoxTouchesBox( _
   ByVal _p1 As dVector3, _
   ByVal R1 As dMatrix3, _
   ByVal side1 As dVector3, _
   ByVal _p2 As dVector3, _
   ByVal R2 As dMatrix3, _
   ByVal side2 As dVector3 _
) As Integer
[C#]
public static int dBoxTouchesBox(
   dVector3 _p1,
   dMatrix3 R1,
   dVector3 side1,
   dVector3 _p2,
   dMatrix3 R2,
   dVector3 side2
);

Parameters

_p1
A dVector3 containing the center coordinates for box 1
R1
A dMatrix3 containing the rotation matrix for box 1
side1
A dVector3 containing the side lengths (x/y/z) for box 1
_p2
A dVector3 containing the center coordinates for box 2
R2
A dMatrix3 containing the rotation matrix for box 2
side2
A dVector3 containing the side lengths (x/y/z) for box 2

Return Value

1 if the boxes intersect, 0 if they do not

See Also

Ode Class | Tao.Ode Namespace