Physics3D/RigidBody3D: Add [Get|Set][Angular|Linear]Damping

This commit is contained in:
Lynix
2017-11-30 12:04:33 +01:00
parent a9fc553bd5
commit 6d09abbc2c
5 changed files with 98 additions and 8 deletions

View File

@@ -40,7 +40,7 @@ namespace Ndk
else
matrix.MakeIdentity();
m_object.reset(new Nz::RigidBody3D(&world, geom, matrix));
m_object = std::make_unique<Nz::RigidBody3D>(&world, geom, matrix);
m_object->SetMass(1.f);
}