Fix STATIC RigidObject interactions. #536
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation and Context
As shown in the before frames below,
MotionType::STATIC
RigidObject
s were not properly responding to collisions. This changes fixes the issue by adding a static collision object to the world in pace of a rigid body whenMotionType::STATIC
is requested.Other minor changes:
transform_box.glb
asset to include material colors and outfacing normals.LightInfo
objects to white.How Has This Been Tested
Added a new C++ test to check for this issue.
Practical Example:
Before:
![STATIC_object_bug](https://user-images.githubusercontent.com/1445143/77127226-f6bbb200-6a08-11ea-84c3-cf3421156a00.gif)
After:
![STATIC_object_bug_fixed](https://user-images.githubusercontent.com/1445143/77127236-fb806600-6a08-11ea-8bc1-2f72e29bbd00.gif)
Example of new test:
Before fix:
![motiontype_test_bug](https://user-images.githubusercontent.com/1445143/77127167-c4aa5000-6a08-11ea-8c07-ccaa6a64201b.gif)
After fix:
![motiontype_test](https://user-images.githubusercontent.com/1445143/77127173-c83dd700-6a08-11ea-9c87-ed93a9ec0b5f.gif)
Types of changes
Checklist