NVIDIAGameWorks / PhysX

NVIDIA PhysX SDK
Other
3.19k stars 809 forks source link

Which parameters can I set to change the contact performance during the modify contact? #667

Closed pgpgwhp closed 3 months ago

pgpgwhp commented 3 months ago

The Problem

Exactly. I want to change the influence of the specified contacts, thus, during the modify contact callback after the narrow phase , I use the setMaximpluse for each contact points. However, in some cases, the vel of the dynamic objects is to so fast, What should I do to make it more slower?

My solution

  1. I do some test in the PhysX 4.1 and PhysX 3.4, May the change of the restitution make influence to the vel of different contact bodies?
  2. Directly setLinearVelocity for the contact dynamic bodies can change the velocity during the modify contact, and it will apply for the PGS in dynamicSolver. But the gravity and some other forces will make no influence to the velocity as I tested , it's right to use the setLinearVelocity during the modify contact ?
vreutskyy commented 3 months ago

Hi @pgpgwhp Sorry, I don't understand what you're trying to do. Could you maybe describe step by step what's happening and what should happen instead?