Closed avaer closed 3 years ago
This would require re-building app-wasm
, our physx build, to support passing in the new parameters.
This is only high priority if exposing and configuring these physx properties is required to get good performance
This is not needed right now, because the performance problems we were encountering were related to the skybox-anime component, not PhysX.
We should support configuring the physx baking parameters in the
physics
component of apps: https://github.com/webaverse/app-wasm/blob/765dd6d42bef750a295bb64fd5c70f119027d990/physics.cc#L22This would allow apps to have finer control over the physics mesh that's generated for them.
PhysX cooking documentation: https://docs.nvidia.com/gameworks/content/gameworkslibrary/physx/apireference/files/structPxCookingParams.html
Many of the cooking parameters are of interest to us:
meshWeldTolerance
,midphaseDesc
gaussMapLimit