Closed lukashrcka123 closed 7 years ago
Hi
Could please provide more details about this issue so that we can try to repro it?
Hi Please check out this video ( https://www.youtube.com/watch?v=CCfKKCfXisQ&feature=youtu.be ), and notice that strange rollback of the capsule on the inclined plane.
Also when you try to recive contact point information, reported results seem to be a little bit odd.
As you can see on the picture, contact points provided for the capsule-plane pair are placed on the opposite side of the capsule shape. As I noticed before, this happens only with PCM enabled.
My scene description is as follows:
physx::PxSceneDesc sceneDescrition(_physx->getTolerancesScale()); sceneDescrition.gravity = physx::PxVec3(0, -Constants::GravityAcceleration(), 0); sceneDescrition.cpuDispatcher = physx::PxDefaultCpuDispatcherCreate(4); sceneDescrition.filterShader = CollisionFilterShader::Filter; sceneDescrition.simulationEventCallback = &PhysicsSimulationEventCallback::Instance; sceneDescrition.gpuDispatcher = _cudaContextManager->getGpuDispatcher(); sceneDescrition.flags |= physx::PxSceneFlag::eENABLE_KINEMATIC_PAIRS; sceneDescrition.flags |= physx::PxSceneFlag::eENABLE_KINEMATIC_STATIC_PAIRS; sceneDescrition.flags |= physx::PxSceneFlag::eENABLE_GPU_DYNAMICS; sceneDescrition.flags |= physx::PxSceneFlag::eENABLE_PCM; sceneDescrition.flags |= physx::PxSceneFlag::eENABLE_STABILIZATION; sceneDescrition.broadPhaseType = physx::PxBroadPhaseType::eGPU; sceneDescrition.gpuMaxNumPartitions = 8; _scene = _physx->createScene(sceneDescrition);
Thank you for the bug report. A fix has been submitted to our trunk and should eventually appear in GitHub.
Assuming the bug has been fixed.
This happens only when PCM contact generation is enabled. After re-enabling legacy contact generation by clearing the _PxSceneFlag::eENABLEPCM flag, everything works fine.