Update Velocity[System/Component] to add CoordSys_Local support (#193)

This commit is contained in:
Faymoon
2019-01-11 09:29:37 +01:00
committed by Jérôme Leclercq
parent beed59b94c
commit fc86d098c3
3 changed files with 6 additions and 4 deletions

View File

@@ -19,10 +19,11 @@ namespace Ndk
class NDK_API VelocityComponent : public Component<VelocityComponent>
{
public:
VelocityComponent(const Nz::Vector3f& velocity = Nz::Vector3f::Zero());
VelocityComponent(const Nz::Vector3f& velocity = Nz::Vector3f::Zero(), Nz::CoordSys coordSystem = Nz::CoordSys_Global);
~VelocityComponent() = default;
Nz::Vector3f linearVelocity;
Nz::CoordSys coordSys;
VelocityComponent& operator=(const Nz::Vector3f& vel);