summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJonathan Bradley <jcb@pikum.xyz>2023-11-05 21:10:38 -0500
committerJonathan Bradley <jcb@pikum.xyz>2023-11-15 13:16:34 -0500
commitb333256a89f0f292fdbf0c7a0a494cc8877f9f5b (patch)
tree0e98b4babba8fef6c996643e8bf13ab8e1f47b32 /src
parent058dbf39d2b99af43a20334189bec3db36ffc53e (diff)
default value for mass when serializing
Diffstat (limited to 'src')
-rw-r--r--src/game.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp
index eac0965..9f8f84b 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -151,6 +151,7 @@ void SerializeInstance(std::ofstream &stream, const CompInstance &comp) {
baseInst.posRot = btTransform{};
baseInst.posRot.setIdentity();
baseInst.scale = btVector3(1, 1, 1);
+ baseInst.mass = 1;
if (comp.entHandle != c.entHandle)
stream << PKE_FILE_INSTANCE_ENTITY_HANDLE << handleStr << std::endl;
stream << PKE_FILE_INSTANCE_ENTITY_TYPE_CODE << et->entityTypeCode << std::endl;