Merge branch 'development' into issues/exception_handling
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com> # Conflicts: # Code/Framework/AzFramework/Tests/Spawnable/SpawnableEntitiesManagerTests.cpp
This commit is contained in:
@@ -91,6 +91,11 @@ namespace WhiteBox
|
||||
bodyConfiguration.m_position = worldTransform.GetTranslation();
|
||||
bodyConfiguration.m_kinematic = true; // note: this field is ignored in the WhiteBoxBodyType::Static case
|
||||
bodyConfiguration.m_colliderAndShapeData = shape;
|
||||
// Since the shape used is a triangle mesh the COM, Mass and Inertia
|
||||
// cannot be computed. Disable them to use default values.
|
||||
bodyConfiguration.m_computeCenterOfMass = false;
|
||||
bodyConfiguration.m_computeMass = false;
|
||||
bodyConfiguration.m_computeInertiaTensor = false;
|
||||
m_simulatedBodyHandle = sceneInterface->AddSimulatedBody(defaultScene, &bodyConfiguration);
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user