SDK/PhysicsComponent2D: Allow massless bodies

This commit is contained in:
Lynix 2018-10-07 17:34:46 +02:00
parent 7f2826f192
commit f02f206aff
2 changed files with 2 additions and 1 deletions

View File

@ -215,6 +215,7 @@ Nazara Development Kit:
- Added experimental BoxLayout class
- RenderSystem now resolve skinning before render
- EntityOwner constructor taking a Entity* is no longer explicit
- PhysicsComponent2D now allows massless bodies (zero mass)
# 0.4:

View File

@ -320,7 +320,7 @@ namespace Ndk
inline void PhysicsComponent2D::SetMass(float mass)
{
NazaraAssert(m_object, "Invalid physics object");
NazaraAssert(mass > 0.f, "Mass should be positive");
NazaraAssert(mass >= 0.f, "Mass should be positive");
m_object->SetMass(mass);
}