You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
o3de/Code/Framework/AzFramework/AzFramework
moraaar 3b9762142a
Triangle Mesh with a Kinematic PhysX Rigid Body warns the user instead of error. (#4657)
Using triangle mesh with a kinematic rigid body is allowed, but the options "Compute COM", "Compute Mass" and "Compute Inertia" are not supported by PhysX and an error in logged that default values for COM, Mass and Inertia will be used. Now this situation is captured and an explanatory warning is used instead.

- Improved RigidBody::UpdateMassProperties function to apply the same logic in the treatment of shapes for all three parameters: COM, Mass and Inertia.
- Improved UpdateMassProperties function by using references for the override parameters instead of pointers.
- Improved function that computes the Center of Mass UpdateCenterOfMass (renamed from UpdateComputedCenterOfMass), to include the same shapes that the compute mass and inertia functions in physx updateMassAndInertia, which is to include all shapes if includeAllShapesInMassCalculation is true, else include only the shapes with eSIMULATION_SHAPE flag.
- Removed unused private function RigidBody::ComputeInertia.
- Added unit test to check when the warnings are fired correctly when COM, Mass or Inertia are asked to be computed on a rigid body with triangle mesh shapes.
- Improved MassComputeFixture tests by not only using Box shape, but also sphere and capture, plus improved the PossibleMassComputeFlags parameters to include all possible variations of the MassComputeFlags flags.

Fixes #3322
Fixes #3979

Signed-off-by: moraaar <moraaar@amazon.com>
4 years ago
..
API Miscellaneous fixes and PAL changes required for restricted platforms. (#4021) 4 years ago
Application Update the FileIO Aliases (#4186) 4 years ago
Archive Update the FileIO Aliases (#4186) 4 years ago
Asset Update the FileIO Aliases (#4186) 4 years ago
CommandLine Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
Components more Code/Framework fixes 4 years ago
Debug Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
Dependency Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
Entity Squashed commit of Procedural Prefab work (#4481) 4 years ago
FileFunc Replaced AzFramework::FileFunc JSON utils API calls with AzCore::JsonUtils APIs that appear to have been duplicated. Also fixed up improper Project Configurator -> Project Manager comment replacements. 4 years ago
FileTag Code/Framework 4 years ago
Font Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
Gem Add "Registry" folders as scan folders (#4583) 4 years ago
IO Update the FileIO Aliases (#4186) 4 years ago
InGameUI Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
Input Only enable the Keyboard device in the XcbKeyboard unit tests (#4682) 4 years ago
Logging Removed ununeeded includes from EBus EBus.h and Policies.h (#4256) 4 years ago
Matchmaking [O3DE][GameLift] Add client side change for starting and stopping matchmaking (#4536) 4 years ago
Math Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
Metrics Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
Network Archive Component - Rewrite and additional work on Archive and Asset Bundler (#4332) 4 years ago
Physics Triangle Mesh with a Kinematic PhysX Rigid Body warns the user instead of error. (#4657) 4 years ago
Platform Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
Process Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
ProjectManager Miscellaneous fixes and PAL changes required for restricted platforms. (#4021) 4 years ago
Render Removed ununeeded includes from EBus EBus.h and Policies.h (#4256) 4 years ago
Scene Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
Script Cleanup SerializeContext.h pt.1 (#4264) 4 years ago
Session Add GameLift matchmaking backfill server support (#4622) 4 years ago
Slice Minimal TypeInfo header/reduce std interdependencies. (#2688) 4 years ago
Spawnable PR feedback 4 years ago
StreamingInstall Cleanup SerializeContext.h pt.1 (#4264) 4 years ago
StringFunc Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
TargetManagement Archive Component - Rewrite and additional work on Archive and Asset Bundler (#4332) 4 years ago
Terrain Terrain/sphrose/surface gradient list component (#4409) 4 years ago
Thermal Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
UnitTest fixes AzFramework 4 years ago
Viewport Update naming to CameraInput types (#4527) 4 years ago
Visibility many bug fixes 4 years ago
Windowing Removed ununeeded includes from EBus EBus.h and Policies.h (#4256) 4 years ago
AzFrameworkModule.cpp Input context component (#4152) 4 years ago
AzFrameworkModule.h Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago
azframework_files.cmake [GameLift][FlexMatch] Update session interface for clients to make matchmaking requests (#4450) 4 years ago