Files
cocos4/cocos/physics/framework/physics-enum.ts
T
yinkaile 96a735b2ff 3d v1.2 physics 2d (#7357)
* 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
2020-10-12 11:49:49 +08:00

53 lines
707 B
TypeScript

/**
* @packageDocumentation
* @module physics
*/
import { Enum } from "../../core";
export enum ERigidBodyType {
DYNAMIC = 1,
STATIC = 2,
KINEMATIC = 4,
}
export enum EAxisDirection {
X_AXIS,
Y_AXIS,
Z_AXIS,
}
Enum(EAxisDirection);
export enum ESimplexType {
VERTEX = 1,
LINE = 2,
TRIANGLE = 3,
TETRAHEDRON = 4,
}
Enum(ESimplexType);
export enum EColliderType {
BOX,
SPHERE,
CAPSULE,
CYLINDER,
CONE,
MESH,
PLANE,
SIMPLEX,
TERRAIN,
}
Enum(EColliderType);
export enum EConstraintType {
POINT_TO_POINT,
HINGE,
CONE_TWIST
}
Enum(EConstraintType);
export enum PhysicsGroup {
DEFAULT = 1,
}
Enum(PhysicsGroup);