Files
cocos4/cocos/physics-2d/framework/index.ts
T
Ling Zhan 6f83d4dbd2 [feat] physics-2d supports switching back-end in EDITOR (#13177)
* [feat] physics-2d supports switching back-end in EDITOR

* tweak

* tweak

* tweak

* eslint ignore ban-types (object, Function) in 2d physics-system.ts

* tweak
2022-10-28 23:33:16 +08:00

40 lines
1.1 KiB
TypeScript

import { legacyCC } from '../../core/global-exports';
import * as PolygonSeparator from './utils/polygon-separator';
import { selector } from './physics-selector';
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,
};
legacyCC.internal.physics2d = {
selector,
};