From 1ded85e62e3a7890760b4a021f299ad49f4594b5 Mon Sep 17 00:00:00 2001 From: Xuchen Han Date: Tue, 3 Sep 2019 15:42:34 -0700 Subject: [PATCH] remove extra gravity field --- examples/SharedMemory/PhysicsClientC_API.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/examples/SharedMemory/PhysicsClientC_API.cpp b/examples/SharedMemory/PhysicsClientC_API.cpp index 87276b264..2db272fa8 100644 --- a/examples/SharedMemory/PhysicsClientC_API.cpp +++ b/examples/SharedMemory/PhysicsClientC_API.cpp @@ -372,9 +372,6 @@ B3_SHARED_API int b3LoadSoftBodyAddGravityForce(b3SharedMemoryCommandHandle comm { struct SharedMemoryCommand* command = (struct SharedMemoryCommand*)commandHandle; b3Assert(command->m_type == CMD_LOAD_SOFT_BODY); - command->m_loadSoftBodyArguments.m_gravity[0] = gravityX; - command->m_loadSoftBodyArguments.m_gravity[1] = gravityY; - command->m_loadSoftBodyArguments.m_gravity[2] = gravityZ; command->m_updateFlags |= LOAD_SOFT_BODY_ADD_GRAVITY_FORCE; return 0; }