Add AddImpulse for PhysicsComponent2D (#141)

* Update PhysicsComponent2D.hpp

* Update LuaBinding_SDK.hpp

* Update LuaBinding_SDK.cpp

* Update LuaBinding_SDK.cpp

* Add : AddImpulse

* Add : AddImpulse

* Add : binding of PhysicsComponent2D

* add : handle

* fix alphabetical order

* complete PhysicsComponent2D binding

* Update LuaBinding_SDK.cpp

* Update LuaBinding_SDK.hpp

* Update PhysicsComponent2D.hpp

* Update PhysicsComponent2D.inl

* forgot : use namespace Nz and open namespace Ndk

* Update PhysicsComponent2D.hpp

* Add Addimpulse

* Update PhysicsComponent3D.hpp
This commit is contained in:
Faymoon
2017-11-21 12:17:11 +01:00
committed by Jérôme Leclercq
parent f991a9529e
commit 06ac8cf904
3 changed files with 36 additions and 3 deletions

View File

@@ -22,9 +22,11 @@ namespace Ndk
PhysicsComponent2D() = default;
PhysicsComponent2D(const PhysicsComponent2D& physics);
~PhysicsComponent2D() = default;
void AddForce(const Nz::Vector2f& force, Nz::CoordSys coordSys = Nz::CoordSys_Global);
void AddForce(const Nz::Vector2f& force, const Nz::Vector2f& point, Nz::CoordSys coordSys = Nz::CoordSys_Global);
void AddImpulse(const Nz::Vector2f& impulse, Nz::CoordSys coordSys = Nz::CoordSys_Global);
void AddImpulse(const Nz::Vector2f& impulse, const Nz::Vector2f& point, Nz::CoordSys coordSys = Nz::CoordSys_Global);
void AddTorque(float torque);
Nz::Rectf GetAABB() const;