diff options
author | chai <chaifix@163.com> | 2019-04-13 20:15:07 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-04-13 20:15:07 +0800 |
commit | 866e00474be3bfe0e7dac73b720af0b9ebf7109a (patch) | |
tree | 36c44e99352e2d582b4f2f1dbd4e9e672a54f2cf /source/modules/asura-box2d | |
parent | b5b43bac50ad58949e70bcd1a34b1e6c4765fd51 (diff) |
*misc
Diffstat (limited to 'source/modules/asura-box2d')
-rw-r--r-- | source/modules/asura-box2d/physics/body.h | 2 | ||||
-rw-r--r-- | source/modules/asura-box2d/physics/chain_shape.h | 32 |
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 |