From 866e00474be3bfe0e7dac73b720af0b9ebf7109a Mon Sep 17 00:00:00 2001 From: chai Date: Sat, 13 Apr 2019 20:15:07 +0800 Subject: *misc --- source/modules/asura-box2d/physics/body.h | 2 +- source/modules/asura-box2d/physics/chain_shape.h | 32 ++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) (limited to 'source/modules/asura-box2d') 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 + +// asura modules +#include + +namespace AsuraEngine +{ + namespace Physics + { + + class ChainShape + : AEScripting::Portable + { + public: + + ChainShape(); + ~ChainShape(); + + private: + + b2ChainShape* mShape; + + }; + + } +} + +#endif \ No newline at end of file -- cgit v1.1-26-g67d0