Files
cocos4/cocos/3d/framework/physics/index.ts
T
Leslie Leigh 4488d0d363 Vmath (#3700)
* * 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
2019-01-03 18:50:17 +08:00

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;
// }