diff options
Diffstat (limited to 'source/modules/asura-box2d/physics')
-rw-r--r-- | source/modules/asura-box2d/physics/binding/_body.cpp | 171 | ||||
-rw-r--r-- | source/modules/asura-box2d/physics/binding/_world.cpp | 21 | ||||
-rw-r--r-- | source/modules/asura-box2d/physics/body.h | 64 | ||||
-rw-r--r-- | source/modules/asura-box2d/physics/contact.h | 0 | ||||
-rw-r--r-- | source/modules/asura-box2d/physics/fixture.h | 17 | ||||
-rw-r--r-- | source/modules/asura-box2d/physics/joint.h | 0 | ||||
-rw-r--r-- | source/modules/asura-box2d/physics/shape.h | 0 | ||||
-rw-r--r-- | source/modules/asura-box2d/physics/world.h | 18 |
8 files changed, 0 insertions, 291 deletions
diff --git a/source/modules/asura-box2d/physics/binding/_body.cpp b/source/modules/asura-box2d/physics/binding/_body.cpp deleted file mode 100644 index 0c9e3e8..0000000 --- a/source/modules/asura-box2d/physics/binding/_body.cpp +++ /dev/null @@ -1,171 +0,0 @@ -#include "../Body.h" - -using namespace std; - -namespace AsuraEngine -{ - namespace Physics - { - - LUAX_REGISTRY(Body) - { - LUAX_REGISTER_METHODS(state, - { "GetType", _GetType }, - { "GetX", _GetX }, - { "GetY", _GetY }, - { "GetAngle", _GetAngle }, - { "GetPosition", _GetPosition }, - { "GetLinearVelocity", _GetLinearVelocity }, - { "GetWorldCenter", _GetWorldCenter }, - { "GetLocalCenter", _GetLocalCenter }, - { "GetAngularVelocity", _GetAngularVelocity }, - { "GetMass", _GetMass }, - { "GetInertia", _GetInertia }, - { "GetMassData", _GetMassData }, - { "GetAngularDamping", _GetAngularDamping }, - { "GetLinearDamping", _GetLinearDamping }, - { "GetGravityScale", _GetGravityScale }, - { "GetGravityScale", _GetGravityScale } - ); - } - - LUAX_POSTPROCESS(Body) - { - LUAX_REGISTER_ENUM(state, "EBodyType", - { "INVALID", BODY_TYPE_INVALID }, - { "STATIC", BODY_TYPE_STATIC }, - { "DYNAMIC", BODY_TYPE_DYNAMIC }, - { "KINEMATIC", BODY_TYPE_KINEMATIC } - ); - - } - - // body:GetType() - LUAX_IMPL_METHOD(Body, _GetType) - { - LUAX_PREPARE(L, Body); - return 0; - } - - // body:GetX() - LUAX_IMPL_METHOD(Body, _GetX) - { - LUAX_PREPARE(L, Body); - - return 0; - } - - // body:GetY() - LUAX_IMPL_METHOD(Body, _GetY) - { - LUAX_PREPARE(L, Body); - - return 0; - } - - // body:GetAngle() - LUAX_IMPL_METHOD(Body, _GetAngle) - { - LUAX_PREPARE(L, Body); - - return 0; - } - - // body:GetPosition() - LUAX_IMPL_METHOD(Body, _GetPosition) - { - LUAX_PREPARE(L, Body); - - return 0; - } - - // body:GetLinearVelocity() - LUAX_IMPL_METHOD(Body, _GetLinearVelocity) - { - LUAX_PREPARE(L, Body); - - return 0; - } - - // body:GetWorldCenter() - LUAX_IMPL_METHOD(Body, _GetWorldCenter) - { - LUAX_PREPARE(L, Body); - - return 0; - } - - // body:GetLocalCenter() - LUAX_IMPL_METHOD(Body, _GetLocalCenter) - { - LUAX_PREPARE(L, Body); - - return 0; - } - - // body:GetAngularVelocity() - LUAX_IMPL_METHOD(Body, _GetAngularVelocity) - { - LUAX_PREPARE(L, Body); - - return 0; - } - - // body:GetMass() - LUAX_IMPL_METHOD(Body, _GetMass) - { - LUAX_PREPARE(L, Body); - - return 0; - } - - // body:GetInertia() - LUAX_IMPL_METHOD(Body, _GetInertia) - { - LUAX_PREPARE(L, Body); - - return 0; - } - - // body:GetMassData() - LUAX_IMPL_METHOD(Body, _GetMassData) - { - LUAX_PREPARE(L, Body); - - return 0; - } - - // body:GetAngularDamping() - LUAX_IMPL_METHOD(Body, _GetAngularDamping) - { - LUAX_PREPARE(L, Body); - - return 0; - } - - // body:GetLinearDamping() - LUAX_IMPL_METHOD(Body, _GetLinearDamping) - { - LUAX_PREPARE(L, Body); - - return 0; - } - - // body:GetGravityScale() - LUAX_IMPL_METHOD(Body, _GetGravityScale) - { - LUAX_PREPARE(L, Body); - - return 0; - } - - // body:GetGravityScale() - LUAX_IMPL_METHOD(Body, _GetGravityScale) - { - LUAX_PREPARE(L, Body); - - return 0; - } - - } -} diff --git a/source/modules/asura-box2d/physics/binding/_world.cpp b/source/modules/asura-box2d/physics/binding/_world.cpp deleted file mode 100644 index 0940959..0000000 --- a/source/modules/asura-box2d/physics/binding/_world.cpp +++ /dev/null @@ -1,21 +0,0 @@ -#include "../World.h" - -using namespace std; - -namespace AsuraEngine -{ - namespace Physics - { - /* - LUAX_REGISTRY(World) - { - - } - - LUAX_POSTPROCESS(World) - { - - } -*/ - } -} diff --git a/source/modules/asura-box2d/physics/body.h b/source/modules/asura-box2d/physics/body.h deleted file mode 100644 index d7e79d5..0000000 --- a/source/modules/asura-box2d/physics/body.h +++ /dev/null @@ -1,64 +0,0 @@ -#ifndef __ASURA_BOX2D_BODY_H__ -#define __ASURA_BOX2D_BODY_H__ - -#include <Box2D/Box2D.h> - -#include <asura-base/Classes.h> -#include <asura-base/Scripting/Scripting.h> - -namespace_begin(AsuraEngine) -namespace_begin(Physics) - -class World; -class Joint; - -enum BodyType -{ - BODY_TYPE_INVALID, - BODY_TYPE_STATIC, - BODY_TYPE_DYNAMIC, - BODY_TYPE_KINEMATIC -}; - -class Body : public AEScripting::Portable<Body> -{ -public: - -private: - - friend class Joint; - - //----------------------------------------------------------------------------// - - LUAX_DECL_FACTORY(Body); - - LUAX_DECL_ENUM(BodyType, 1); - - LUAX_DECL_METHOD(_GetType); - LUAX_DECL_METHOD(_GetX); - LUAX_DECL_METHOD(_GetY); - LUAX_DECL_METHOD(_GetAngle); - LUAX_DECL_METHOD(_GetPosition); - LUAX_DECL_METHOD(_GetLinearVelocity); - LUAX_DECL_METHOD(_GetWorldCenter); - LUAX_DECL_METHOD(_GetLocalCenter); - LUAX_DECL_METHOD(_GetAngularVelocity); - LUAX_DECL_METHOD(_GetMass); - LUAX_DECL_METHOD(_GetInertia); - LUAX_DECL_METHOD(_GetMassData); - LUAX_DECL_METHOD(_GetAngularDamping); - LUAX_DECL_METHOD(_GetLinearDamping); - LUAX_DECL_METHOD(_GetGravityScale); - LUAX_DECL_METHOD(_GetGravityScale); - - //----------------------------------------------------------------------------// - - b2Body* m_Body; - World* m_World; - -}; - -namespace_end -namespace_end - -#endif
\ No newline at end of file diff --git a/source/modules/asura-box2d/physics/contact.h b/source/modules/asura-box2d/physics/contact.h deleted file mode 100644 index e69de29..0000000 --- a/source/modules/asura-box2d/physics/contact.h +++ /dev/null diff --git a/source/modules/asura-box2d/physics/fixture.h b/source/modules/asura-box2d/physics/fixture.h deleted file mode 100644 index 69f0153..0000000 --- a/source/modules/asura-box2d/physics/fixture.h +++ /dev/null @@ -1,17 +0,0 @@ -#ifndef _ASRUA_ENGINE_FIXTURE_H_ -#define _ASRUA_ENGINE_FIXTURE_H_ - -#include <asura-base/Classes.h> - -namespace_begin(AsuraEngine) -namespace_begin(Physics) - -class Fixture -{ - -}; - -namespace_end -namespace_end - -#endif diff --git a/source/modules/asura-box2d/physics/joint.h b/source/modules/asura-box2d/physics/joint.h deleted file mode 100644 index e69de29..0000000 --- a/source/modules/asura-box2d/physics/joint.h +++ /dev/null diff --git a/source/modules/asura-box2d/physics/shape.h b/source/modules/asura-box2d/physics/shape.h deleted file mode 100644 index e69de29..0000000 --- a/source/modules/asura-box2d/physics/shape.h +++ /dev/null diff --git a/source/modules/asura-box2d/physics/world.h b/source/modules/asura-box2d/physics/world.h deleted file mode 100644 index a156c79..0000000 --- a/source/modules/asura-box2d/physics/world.h +++ /dev/null @@ -1,18 +0,0 @@ -#ifndef __ASURA_BOX2D_WORLD_H__ -#define __ASURA_BOX2D_WORLD_H__ - -#include <asura-base/Classes.h> -#include <asura-base/Scripting/Scripting.h> - -namespace_begin(AsuraEngine) -namespace_begin(Physics) - -class World : public AEScripting::Portable<World> -{ - -}; - -namespace_end -namespace_end - -#endif
\ No newline at end of file |