mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 15:52:40 +08:00
3ed9edfbc6
* phy framework * phy mat * framework/index.ts * a node can have more than one collider * rename physical to physics * fix * fix * support mix ts js * fix * fix problems in issue * fix * remove RigidBodyType, add DataFlow * useGravity, freezeRotation, isKinematic * raycasts * fit buildin-world raycast options * add contact material * lint * add rigid-body-component.ts * some improvements * improvements * fix bug
20 lines
574 B
TypeScript
20 lines
574 B
TypeScript
import { PhysicsBoxShape, PhysicsSphereShape, PhysicsBody } from './body';
|
|
import { ContactMaterial } from './contact-material';
|
|
import './physics-system';
|
|
import './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;
|
|
// }
|