summaryrefslogtreecommitdiff
path: root/source/modules/asura-box2d
diff options
context:
space:
mode:
Diffstat (limited to 'source/modules/asura-box2d')
-rw-r--r--source/modules/asura-box2d/physics/body.h2
-rw-r--r--source/modules/asura-box2d/physics/chain_shape.h32
2 files changed, 33 insertions, 1 deletions
diff --git a/source/modules/asura-box2d/physics/body.h b/source/modules/asura-box2d/physics/body.h
index ce695ed..3a4aa5f 100644
--- a/source/modules/asura-box2d/physics/body.h
+++ b/source/modules/asura-box2d/physics/body.h
@@ -34,7 +34,7 @@ namespace AsuraEngine
LUAX_DECL_FACTORY(Body);
- LUAX_DECL_ENUM(BodyType);
+ LUAX_DECL_ENUM(BodyType, 1);
LUAX_DECL_METHOD(_GetType);
LUAX_DECL_METHOD(_GetX);
diff --git a/source/modules/asura-box2d/physics/chain_shape.h b/source/modules/asura-box2d/physics/chain_shape.h
index e69de29..dd03ddf 100644
--- a/source/modules/asura-box2d/physics/chain_shape.h
+++ b/source/modules/asura-box2d/physics/chain_shape.h
@@ -0,0 +1,32 @@
+#ifndef __ASURA_CHAIN_SHAPE_H__
+#define __ASURA_CHAIN_SHAPE_H__
+
+// 3rd-party
+#include <Box2D/Collision/Shapes/b2ChainShape.h>
+
+// asura modules
+#include <asura-utils/scripting/portable.hpp>
+
+namespace AsuraEngine
+{
+ namespace Physics
+ {
+
+ class ChainShape
+ : AEScripting::Portable<ChainShape>
+ {
+ public:
+
+ ChainShape();
+ ~ChainShape();
+
+ private:
+
+ b2ChainShape* mShape;
+
+ };
+
+ }
+}
+
+#endif \ No newline at end of file