boxBox method

bool boxBox(
  1. Box si,
  2. Box sj,
  3. Vec3 xi,
  4. Vec3 xj,
  5. Quaternion qi,
  6. Quaternion qj,
  7. Body bi,
  8. Body bj, [
  9. Shape? rsi,
  10. Shape? rsj,
  11. bool justTest = false,
])

Implementation

bool boxBox(
  Box si,
  Box sj,
  Vec3 xi,
  Vec3 xj,
  Quaternion qi,
  Quaternion qj,
  Body bi,
  Body bj,
  [
    Shape? rsi,
    Shape? rsj,
    bool justTest = false
]){
  si.convexPolyhedronRepresentation.material = si.material;
  sj.convexPolyhedronRepresentation.material = sj.material;
  si.convexPolyhedronRepresentation.collisionResponse = si.collisionResponse;
  sj.convexPolyhedronRepresentation.collisionResponse = sj.collisionResponse;
  return convexConvex(si.convexPolyhedronRepresentation,sj.convexPolyhedronRepresentation,xi,xj,qi,qj,bi,bj,si,sj,justTest);
}