summaryrefslogtreecommitdiff
path: root/src/lib/ephysics/ephysics_body_materials.h
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-03 22:10:40 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-03 22:10:40 +0000
commit9e0788cc2e261ec66cf740e35a3e71f4485df763 (patch)
tree8c1230e446edd6966d39c1b8959c7f97f5c0f731 /src/lib/ephysics/ephysics_body_materials.h
parent9edec477ebb83e64f3e464d82665e2b9f01f9bb0 (diff)
efl: merge ephysics
changes: * __UNUSED__ -> EINA_UNUSED * Fixed doc hierarchy SVN revision: 82126
Diffstat (limited to 'src/lib/ephysics/ephysics_body_materials.h')
-rw-r--r--src/lib/ephysics/ephysics_body_materials.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/lib/ephysics/ephysics_body_materials.h b/src/lib/ephysics/ephysics_body_materials.h
new file mode 100644
index 0000000000..40b6ee8280
--- /dev/null
+++ b/src/lib/ephysics/ephysics_body_materials.h
@@ -0,0 +1,37 @@
1#ifndef _EPHYSICS_BODY_MATERIALS_H
2#define _EPHYSICS_BODY_MATERIALS_H
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8typedef struct _EPhysics_Body_Material_Props EPhysics_Body_Material_Props;
9struct _EPhysics_Body_Material_Props {
10 EPhysics_Body_Material material;
11 double density;
12 double friction;
13 double restitution;
14};
15
16const EPhysics_Body_Material_Props ephysics_material_props [] = {
17 {EPHYSICS_BODY_MATERIAL_CUSTOM, 1.0, 0.5, 0.0},
18 {EPHYSICS_BODY_MATERIAL_CONCRETE, EPHYSICS_BODY_DENSITY_CONCRETE,
19 EPHYSICS_BODY_FRICTION_CONCRETE, EPHYSICS_BODY_RESTITUTION_CONCRETE},
20 {EPHYSICS_BODY_MATERIAL_IRON, EPHYSICS_BODY_DENSITY_IRON,
21 EPHYSICS_BODY_FRICTION_IRON, EPHYSICS_BODY_RESTITUTION_IRON},
22 {EPHYSICS_BODY_MATERIAL_PLASTIC, EPHYSICS_BODY_DENSITY_PLASTIC,
23 EPHYSICS_BODY_FRICTION_PLASTIC, EPHYSICS_BODY_RESTITUTION_PLASTIC},
24 {EPHYSICS_BODY_MATERIAL_POLYSTYRENE, EPHYSICS_BODY_DENSITY_POLYSTYRENE,
25 EPHYSICS_BODY_FRICTION_POLYSTYRENE,
26 EPHYSICS_BODY_RESTITUTION_POLYSTYRENE},
27 {EPHYSICS_BODY_MATERIAL_RUBBER, EPHYSICS_BODY_DENSITY_RUBBER,
28 EPHYSICS_BODY_FRICTION_RUBBER, EPHYSICS_BODY_RESTITUTION_RUBBER},
29 {EPHYSICS_BODY_MATERIAL_WOOD, EPHYSICS_BODY_DENSITY_WOOD,
30 EPHYSICS_BODY_FRICTION_WOOD, EPHYSICS_BODY_RESTITUTION_WOOD}
31};
32
33#ifdef __cplusplus
34}
35#endif
36
37#endif