PhysX Visual Remote Debugger

From C4 Engine Wiki

Jump to: navigation, search

This is a short note on how to use the visual remote debugger in PhysX.

Look in PhysXPhysicsManager.cpp for PhysXPhysicsMgr::Init in the PhysX project, and find the code

	//gPhysicsSDK->getFoundationSDK().getRemoteDebugger()->connect("192.168.1.21");

This needs to be uncommented and the ipaddress of your PC entered, just open a DOS command and type ipconfig at the prompt to get the ipaddress.

Compile the code and because you have the PhysX SDK installed select Start->All Programs->AGEIA PhysX SDK 2.6.2->Tools->Remote Debugger

This will start the Visual Remote Debugging tool (VRD) and you should get a screen that looks something like this.

Image:PhysX-VRD-Open.jpg

  • Start C4, open up a physics world, run around and make sure some of the physics objects are utilized.
  • Quit C4
  • Maximize the VRD, make sure that is has stopped recording.
  • Use the rewind button and rewind to the start.

You can now see the scene before initialization, move the scene on one frame, and you can move around the scene using WASD and viewing the various actor properties.

Scene in C4

Image:PhysX-VRD-RunC4.jpg

Scene in VRD

Image:PhysX-VRD-VRD.jpg