PhysX throws warnings (which are escalated to errors) when CCD and Kinematic are in invalid states (they can only be enabled exclusively).
The code to fix this has already been submitted, but may cause future maintenance issues.
Consider creating a single "SanitizeFlags" type function that can be applied to PhysX types and sanitize the flags that are passed to prevent these errors.
This will have the benefit of funneling all code which modifies flags through a single point so changes in the future are contained.
Also, refactor FBodyInstance to use the same code path for determining flag values (instead of GetShapeFlags, SetShapeFlags, and UpdatePhysicsSpaheFilterData).
N/A
Just verify physics isn't broke. Test simulated, kinematic, and CCD.
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-33562 in the post.
0 |
Component | UE - Simulation - Physics |
---|---|
Affects Versions | 4.12, 4.13 |
Target Fix | 4.15 |
Fix Commit | 3221402 |
---|---|
Main Commit | 3227721 |
Created | Jul 20, 2016 |
---|---|
Resolved | Dec 5, 2016 |
Updated | Apr 27, 2018 |