mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-03 01:12:42 +08:00
96a735b2ff
* Squashed commit of the following:
add physics 2d
* @@ -205,9 +205,6 @@ export class b2PhysicsWorld implements IPhysicsWorld {
revert box2d version
* add mask param to raycast
* refine code
30 lines
969 B
TypeScript
30 lines
969 B
TypeScript
export * from "./physics-types";
|
|
|
|
export * from "./physics-system";
|
|
|
|
// 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';
|
|
|
|
import * as PolygonSeparator from './utils/polygon-separator';
|
|
|
|
export const Physics2DUtils = {
|
|
PolygonSeparator
|
|
}
|