mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 08:02:39 +08:00
96a735b2ff
* 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
53 lines
707 B
TypeScript
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);
|