forked from n5ro/aframe-physics-system
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstants.js
59 lines (59 loc) · 1.39 KB
/
constants.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
module.exports = {
GRAVITY: -9.8,
MAX_INTERVAL: 4 / 60,
ITERATIONS: 10,
CONTACT_MATERIAL: {
friction: 0.01,
restitution: 0.3,
contactEquationStiffness: 1e8,
contactEquationRelaxation: 3,
frictionEquationStiffness: 1e8,
frictionEquationRegularization: 3
},
ACTIVATION_STATE: {
ACTIVE_TAG: "active",
ISLAND_SLEEPING: "islandSleeping",
WANTS_DEACTIVATION: "wantsDeactivation",
DISABLE_DEACTIVATION: "disableDeactivation",
DISABLE_SIMULATION: "disableSimulation"
},
COLLISION_FLAG: {
STATIC_OBJECT: 1,
KINEMATIC_OBJECT: 2,
NO_CONTACT_RESPONSE: 4,
CUSTOM_MATERIAL_CALLBACK: 8, //this allows per-triangle material (friction/restitution)
CHARACTER_OBJECT: 16,
DISABLE_VISUALIZE_OBJECT: 32, //disable debug drawing
DISABLE_SPU_COLLISION_PROCESSING: 64 //disable parallel/SPU processing
},
TYPE: {
STATIC: "static",
DYNAMIC: "dynamic",
KINEMATIC: "kinematic"
},
SHAPE: {
BOX: "box",
CYLINDER: "cylinder",
SPHERE: "sphere",
CAPSULE: "capsule",
CONE: "cone",
HULL: "hull",
HACD: "hacd",
VHACD: "vhacd",
MESH: "mesh",
HEIGHTFIELD: "heightfield"
},
FIT: {
ALL: "all",
MANUAL: "manual"
},
CONSTRAINT: {
LOCK: "lock",
FIXED: "fixed",
SPRING: "spring",
SLIDER: "slider",
HINGE: "hinge",
CONE_TWIST: "coneTwist",
POINT_TO_POINT: "pointToPoint"
}
};