NVIDIAGameWorks / PhysX-3.4

NVIDIA PhysX SDK 3.4
https://www.nvidia.com/
2.34k stars 275 forks source link

Hot to setOwnerClient for Controller actors #117

Closed drashnane closed 4 years ago

drashnane commented 4 years ago

Hi , I'm trying multi client, and I find that PxControllerManager::createController adds actor into the scene without calling setOwnerClient

Is there any way to call setOwnerClient before controller adds actor into the scene?

Pierre-Terdiman commented 4 years ago

There is currently no way to do that.

One thing that might work is simply removing the actor from the scene, calling setOwnerClient, and re-adding the actor to the scene.

PierreTerdiman commented 4 years ago

FWIW I added a client ID parameter for controllers, which will appear in the 5.0 API. For previous versions the previously suggested workaround should work.