Files
cocos4/cocos/physics-2d/framework/index.ts
T
Ling Zhan 650713c0b8 [feat] new polygon partition algorithm: Hertel Mehlhorn #13190 (#13585)
* [feat] new polygon partition algorithm: Hertel Mehlhorn #13190

* eslint

* remove the option to change algorithm

* tweaks

* add unit tests

* tweaks

* eslint
2022-12-02 16:12:17 +08:00

34 lines
1.1 KiB
TypeScript

import * as PolygonSeparator from './utils/polygon-separator';
import * as PolygonPartition from './utils/polygon-partition';
export * from './physics-types';
export * from './physics-system';
export * from '../spec/i-physics-contact';
// rigid body
export * from './components/rigid-body-2d';
// colliders
export * from './components/colliders/collider-2d';
export * from './components/colliders/box-collider-2d';
export * from './components/colliders/circle-collider-2d';
export * from './components/colliders/polygon-collider-2d';
// joints
export * from './components/joints/joint-2d';
export * from './components/joints/distance-joint-2d';
export * from './components/joints/spring-joint-2d';
export * from './components/joints/mouse-joint-2d';
export * from './components/joints/relative-joint-2d';
export * from './components/joints/slider-joint-2d';
export * from './components/joints/fixed-joint-2d';
export * from './components/joints/wheel-joint-2d';
export * from './components/joints/hinge-joint-2d';
export const Physics2DUtils = {
PolygonSeparator,
PolygonPartition,
};