mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-02 00:22:43 +08:00
4488d0d363
* * do not run phy system in editor * support center of phy shape * fix setWorldPosition() bug * add interface pullTransform() for sync dynamic phy body's transform * rename to ts * remove type in jsdoc annotation * set indent to 4 * tslint auto fix * tslint auto fix * update bits.ts * update package.json;update vecs, quat and util. * correct exporting/importing in index.js/export renderer as non-default because dumplicated Scene export * components exporting
26 lines
683 B
TypeScript
26 lines
683 B
TypeScript
import { PhysicsBoxShape, PhysicsSphereShape, PhysicsBody } from './body';
|
|
import { ContactMaterial } from './contact-material';
|
|
export {
|
|
PhysicsBoxShape,
|
|
PhysicsSphereShape,
|
|
PhysicsBody,
|
|
ContactMaterial,
|
|
};
|
|
export * from './physics-system';
|
|
export * from './world';
|
|
|
|
// @ts-ignore
|
|
cc.PhysicsBody = PhysicsBody;
|
|
// @ts-ignore
|
|
cc.PhysicsBoxShape = PhysicsBoxShape;
|
|
// @ts-ignore
|
|
cc.PhysicsSphereShape = PhysicsSphereShape;
|
|
// @ts-ignore
|
|
cc.ContactMaterial = ContactMaterial;
|
|
|
|
// namespace cc {
|
|
// export const PhysicalBody = PhysicalBody;
|
|
// export const PhysicalBoxShape = PhysicalBoxShape;
|
|
// export const PhysicalSphereShape = PhysicalSphereShape;
|
|
// }
|