Home > @esengine/ecs-framework-monorepo > CollisionDetector > aabbTest
CollisionDetector.aabbTest() method
AABB包围盒快速排斥测试
Signature:
typescript
static aabbTest(bounds1: Rectangle, bounds2: Rectangle): boolean;
Parameters
Parameter | Type | Description |
---|---|---|
bounds1 | 第一个包围盒 | |
bounds2 | 第二个包围盒 |
Returns:
boolean
是否可能相交