summaryrefslogtreecommitdiff
path: root/modules/bullet/btRayShape.h
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-02-08 11:53:02 +0100
committerGitHub <noreply@github.com>2021-02-08 11:53:02 +0100
commit332a33503bf6ddd25f4012a0b8caaaeb67e9b18e (patch)
tree0eb10c2fcb4e7f94a2ca16365e9d36076b94bc03 /modules/bullet/btRayShape.h
parent5260b6e046c244ed6376c47c7af5a0f27d934c12 (diff)
parentf7209b459b4faaae9d93bfb6ac5346eb41787f92 (diff)
Merge pull request #43952 from qarmin/cppcheck_modules
Initialize class/struct variables with default values in modules/
Diffstat (limited to 'modules/bullet/btRayShape.h')
-rw-r--r--modules/bullet/btRayShape.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/bullet/btRayShape.h b/modules/bullet/btRayShape.h
index dcc4cc79c7..330755aa31 100644
--- a/modules/bullet/btRayShape.h
+++ b/modules/bullet/btRayShape.h
@@ -42,10 +42,10 @@
/// Ray shape around z axis
ATTRIBUTE_ALIGNED16(class)
btRayShape : public btConvexInternalShape {
- btScalar m_length;
- bool slipsOnSlope;
+ btScalar m_length = 0;
+ bool slipsOnSlope = false;
/// The default axis is the z
- btVector3 m_shapeAxis;
+ btVector3 m_shapeAxis = btVector3(0, 0, 1);
btTransform m_cacheSupportPoint;
btScalar m_cacheScaledLength;