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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user