mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-06 03:22:39 +08:00
6f83d4dbd2
* [feat] physics-2d supports switching back-end in EDITOR * tweak * tweak * tweak * eslint ignore ban-types (object, Function) in 2d physics-system.ts * tweak
40 lines
1.1 KiB
TypeScript
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,
|
|
};
|