O'Reilly logo

Learning Physics Modeling with PhysX by Krishna Kumar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Connecting PVD using a network

Runtime visualization and analysis of a PhysX application by using PVD can be done by streaming the simulation-related data over the TCP/IP network on your local machine. Here, a PVD program works as a TCP/IP server and it must be launched before running your PhysX application. The default port used for listening is 5425.

The code snippet for connecting to PVD by using the TCP/IP network is given as follows:

// check if PvdConnection manager is available on this platform if(gPhysicsSDK->getPvdConnectionManager() == NULL) return; // setup connection parameters const char* pvd_host_ip = "127.0.0.1"; // IP of local PC machine PVD int port = 5425; // TCP port to connect to, where PVD is listening unsigned int timeout = ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required