summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author#Momo <40578274+MomoDeve@users.noreply.github.com>2020-07-16 13:31:16 +0300
committerGitHub <noreply@github.com>2020-07-16 13:31:16 +0300
commit092de325ae62704f16ddd3c847bac9054314ebb9 (patch)
tree0100e3a8867346ba2d3882b39acdf041704b260b
parent89328def0f22cf2cb74977a2b8af5d17899597f8 (diff)
downloadbullet3-092de325ae62704f16ddd3c847bac9054314ebb9.tar.gz
applied const modifiers to RigitBody getters
getPushVelocity and GetTurnVelocity should be marked as const
-rw-r--r--src/BulletDynamics/Dynamics/btRigidBody.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/BulletDynamics/Dynamics/btRigidBody.h b/src/BulletDynamics/Dynamics/btRigidBody.h
index 0a597d90c..7442dd1e6 100644
--- a/src/BulletDynamics/Dynamics/btRigidBody.h
+++ b/src/BulletDynamics/Dynamics/btRigidBody.h
@@ -356,12 +356,12 @@ public:
}
}
- btVector3 getPushVelocity()
+ btVector3 getPushVelocity() const
{
return m_pushVelocity;
}
- btVector3 getTurnVelocity()
+ btVector3 getTurnVelocity() const
{
return m_turnVelocity;
}