Closed lo-th closed 1 year ago
The default filter shader takes additional flags from word2
of the actor's simulation filter data (see here).
So all you need to do to enable CCD is to set the ENABLE_CCD flags in your PxSceneDesc
and PxRigidBody.setRigidBodyFlag()
and then something like actor.simulationFilterData.word2 = _emscripten_enum_PxPairFlagEnum_eDETECT_CCD_CONTACT()
mm i try with word2 ; SOLVE_CONTACT | DETECT_DISCRETE_CONTACT | DETECT_CCD_CONTACT but seem's don't work ?
It should work (I use it that way). Did you also enable PxSceneFlag.eENABLE_CCD
in your scene and PxRigidBodyFlag.eENABLE_CCD
on your bodies?
ok i find thank's for help i use the body flag on scene :) now that work perfect
Hello me again :)
i need help to enable ccd collision ccd need custom scene filterShader with pairFlags |= PxPairFlag::eDETECT_CCD_CONTACT;
but i dont find a way to make custom filter shader
let sceneDesc = new PhysX.PxSceneDesc( tolerances ); sceneDesc.set_filterShader(PhysX.PxTopLevelFunctions.prototype.DefaultFilterShader());
i see PhysX.PxTopLevelFunctions.prototype.setupPassThroughFilterShader but ?
any idea