Fix64 CalculateRadius() { Fix64 maxScale = Fix64Math.Max(pTransform.localScale.x, pTransform.localScale.y, pTransform.localScale.z); Fix64 result = maxScale * _radius; return(result); }
Fix64 CalculateRadius() { Fix64 maxScale = Fix64Math.Max(colliderScale.x, colliderScale.y); Fix64 result = maxScale * _radius; return(result); }
Fix64 CalculateRadius() { Fix64 maxScale = Fix64.one; if (Direction == ParallelCapsuleDirection3D.XAxis) { maxScale = Fix64Math.Max(pTransform.localScale.y, pTransform.localScale.z); } else if (Direction == ParallelCapsuleDirection3D.YAxis) { maxScale = Fix64Math.Max(pTransform.localScale.x, pTransform.localScale.z); } else { maxScale = Fix64Math.Max(pTransform.localScale.x, pTransform.localScale.y); } return(maxScale * _radius); }