Description

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).

Steps to Reproduce

N/A

Just verify physics isn't broke. Test simulated, kinematic, and CCD.

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-33562 in the post.

0
Login to Vote

Fixed
ComponentUE - Simulation - Physics
Affects Versions4.124.13
Target Fix4.15
Fix Commit3221402
Main Commit3227721
CreatedJul 20, 2016
ResolvedDec 5, 2016
UpdatedApr 27, 2018
View Jira Issue