mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-06 03:22:39 +08:00
650713c0b8
* [feat] new polygon partition algorithm: Hertel Mehlhorn #13190 * eslint * remove the option to change algorithm * tweaks * add unit tests * tweaks * eslint
34 lines
1.1 KiB
TypeScript
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,
|
|
};
|