Skip to content

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

Rectangle

第一个包围盒

bounds2

Rectangle

第二个包围盒

Returns:

boolean

是否可能相交

基于 MIT 许可证发布