Files
cocos4/cocos/physics/framework/physics-enum.ts
T
jiaxin.lai 86f761c05f 3d rigidbody refactor (#7635)
* hack of visible decorator

* tweaks

* disable node chain

* using setType instead isKinematic

* fix ammo rigid body

* disable scaling of terrain shape

* twaks

* update default prefab to 1.1.22

* docs

* renaming & deprecated

* docs
2020-10-30 19:03:12 +08:00

54 lines
729 B
TypeScript

/**
* @packageDocumentation
* @module physics
*/
import { Enum } from "../../core";
export enum ERigidBodyType {
DYNAMIC = 1,
STATIC = 2,
KINEMATIC = 4,
}
Enum(ERigidBodyType);
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);