Browse Source

Remove unnecessary kinematic config for automatically created body. (#212)

Fix to issue #211

Signed-off-by: Michał Pełka <[email protected]>
Michał Pełka 3 years ago
parent
commit
71a55ae1bd
1 changed files with 1 additions and 3 deletions
  1. 1 3
      Gems/ROS2/Code/Source/RobotImporter/URDF/JointsMaker.cpp

+ 1 - 3
Gems/ROS2/Code/Source/RobotImporter/URDF/JointsMaker.cpp

@@ -63,9 +63,7 @@ namespace ROS2
         if (!entity->FindComponent<PhysX::EditorRigidBodyComponent>())
         {
             AZ_TracePrintf("AddColliderForFixedJoint", "Adding RigidBody for entity id:%s", entityId.ToString().c_str());
-            PhysX::EditorRigidBodyConfiguration config;
-            config.m_kinematic = true;
-            entity->CreateComponent<PhysX::EditorRigidBodyComponent>(config);
+            entity->CreateComponent<PhysX::EditorRigidBodyComponent>();
         }
     }