Files
cocos4/cocos/3d/physics/physic-enum.ts
T
jiaxin.lai 34c8e6650d Physics builtin (#4547)
* Rename built-in-*** to builtin-***

* Rename r to radius and c to center;

* Add method : transkateAndRotate & setScale to obb & sphere;
Delete unneed class box in box.ts file

* Fix builtin physics Bug of #751 & Modify the physics relative component

* Add macro condition, some method is not declare in builtin

* Rename CC_PHYISCS_*** to CC_PHYSICS_***;

* rename BuiltIn*** to Builtin***

* Typing intersect
2019-06-05 10:27:09 +08:00

23 lines
472 B
TypeScript

export enum ERigidBodyType {
DYNAMIC = 1,
STATIC = 2,
KINEMATIC = 4,
}
export enum ETransformSource {
SCENE = 0,
PHYSIC = 1,
}
// export enum EShapeType {
// SHAPE_RAY = (1 << 0),
// SHAPE_LINE = (1 << 1),
// SHAPE_SPHERE = (1 << 2),
// SHAPE_AABB = (1 << 3),
// SHAPE_OBB = (1 << 4),
// SHAPE_PLANE = (1 << 5),
// SHAPE_TRIANGLE = (1 << 6),
// SHAPE_FRUSTUM = (1 << 7),
// SHAPE_FRUSTUM_ACCURATE = (1 << 8),
// }