Physics3D/RigidBody3D: Rename [Get|Set]Velocity to [Get|Set]LinearVelocity
This commit is contained in:
@@ -169,6 +169,14 @@ namespace Nz
|
||||
return NewtonBodyGetLinearDamping(m_body);
|
||||
}
|
||||
|
||||
Vector3f RigidBody3D::GetLinearVelocity() const
|
||||
{
|
||||
Vector3f velocity;
|
||||
NewtonBodyGetVelocity(m_body, velocity);
|
||||
|
||||
return velocity;
|
||||
}
|
||||
|
||||
float RigidBody3D::GetMass() const
|
||||
{
|
||||
return m_mass;
|
||||
@@ -207,14 +215,6 @@ namespace Nz
|
||||
return m_matrix.GetRotation();
|
||||
}
|
||||
|
||||
Vector3f RigidBody3D::GetVelocity() const
|
||||
{
|
||||
Vector3f velocity;
|
||||
NewtonBodyGetVelocity(m_body, velocity);
|
||||
|
||||
return velocity;
|
||||
}
|
||||
|
||||
PhysWorld3D* RigidBody3D::GetWorld() const
|
||||
{
|
||||
return m_world;
|
||||
@@ -268,6 +268,11 @@ namespace Nz
|
||||
NewtonBodySetLinearDamping(m_body, damping);
|
||||
}
|
||||
|
||||
void RigidBody3D::SetLinearVelocity(const Vector3f& velocity)
|
||||
{
|
||||
NewtonBodySetVelocity(m_body, velocity);
|
||||
}
|
||||
|
||||
void RigidBody3D::SetMass(float mass)
|
||||
{
|
||||
if (m_mass > 0.f)
|
||||
@@ -313,11 +318,6 @@ namespace Nz
|
||||
UpdateBody();
|
||||
}
|
||||
|
||||
void RigidBody3D::SetVelocity(const Vector3f& velocity)
|
||||
{
|
||||
NewtonBodySetVelocity(m_body, velocity);
|
||||
}
|
||||
|
||||
RigidBody3D& RigidBody3D::operator=(const RigidBody3D& object)
|
||||
{
|
||||
RigidBody3D physObj(object);
|
||||
|
||||
Reference in New Issue
Block a user