Physics3D/RigidBody3D: Rename [Get|Set]Velocity to [Get|Set]LinearVelocity

This commit is contained in:
Lynix
2017-12-10 12:09:36 +01:00
parent 37bbdfb34b
commit 0df70dcb16
6 changed files with 49 additions and 48 deletions

View File

@@ -103,10 +103,10 @@ namespace Ndk
if (newPosition != oldPosition)
{
physObj->SetPosition(newPosition);
physObj->SetVelocity((newPosition - oldPosition) * invElapsedTime);
physObj->SetLinearVelocity((newPosition - oldPosition) * invElapsedTime);
}
else
physObj->SetVelocity(Nz::Vector3f::Zero());
physObj->SetLinearVelocity(Nz::Vector3f::Zero());
if (newRotation != oldRotation)
{