void dCollisionBoxNodeInfo::BakeTransform (const dMatrix& transform) { dCollisionNodeInfo::BakeTransform (transform); dVector scale; dMatrix stretchAxis; dMatrix transformMatrix; transform.PolarDecomposition (transformMatrix, scale, stretchAxis); m_size = m_size * scale; }
void dCollisionConeNodeInfo::BakeTransform (const dMatrix& transform) { dCollisionNodeInfo::BakeTransform (transform); dVector scale; dMatrix stretchAxis; dMatrix transformMatrix; transform.PolarDecomposition (transformMatrix, scale, stretchAxis); m_radius *= scale.m_y; m_height *= scale.m_x; }