diff options
| author | Jonathan Bradley <jcb@pikum.xyz> | 2024-01-15 18:20:58 -0500 |
|---|---|---|
| committer | Jonathan Bradley <jcb@pikum.xyz> | 2024-01-15 18:20:58 -0500 |
| commit | c30b1f9b2f5d231e98194db526560eb4e010edff (patch) | |
| tree | 328825d5187f5f0b3ffd6754f8795f6a5947b8f7 /src/math-helpers.cpp | |
| parent | 05a6ca44e40da855a1ddc32cfe799edef74f7bdf (diff) | |
major refactor so cameras are entities and have a rigid body instance
Diffstat (limited to 'src/math-helpers.cpp')
| -rw-r--r-- | src/math-helpers.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/math-helpers.cpp b/src/math-helpers.cpp index ebcd719..5150e55 100644 --- a/src/math-helpers.cpp +++ b/src/math-helpers.cpp @@ -6,6 +6,7 @@ void GlmToBullet(const glm::vec3 &vec, btVector3 &btVec) { btVec.setX(vec.x); btVec.setY(vec.y); btVec.setZ(vec.z); + btVec.setW(0.f); } void GlmToBullet(const glm::quat &quat, btQuaternion &btQuat) { |
