Visualizing joint local frames

Hi

I’m new to PhysX development, and I’ve just started experimenting with joints.
The problem I encountered is that I cannot visualize the local frames of joints in PVD.

I read the manual, and I’ve included the required pieces of code:

  • in my scene setup
m_scene->setVisualizationParameter( physx::PxVisualizationParameter::eJOINT_LOCAL_FRAMES, 1.0f );     
m_scene->setVisualizationParameter( physx::PxVisualizationParameter::eJOINT_LIMITS, 1.0f );
  • in the joint setup
joint->setConstraintFlag( physx::PxConstraintFlag::eVISUALIZATION, true );

But nothing shows in PVD ( I set the Frames and Constraints (3.2) options located in the Preferences tab to ‘Everything’ of course ).

I’m using PhysX 3.3.2, if that could make any difference…

Cheers,
Piotr

Did you do something like this too?

mPhysics->getVisualDebugger()->setVisualDebuggerFlags
    (PxVisualDebuggerFlags::eTRANSMIT_CONTACTS | PxVisualDebuggerFlag::eTRANSMIT_CONSTRAINTS);

or set the flags separately::

mPhysics->getVisualDebugger()->setVisualDebuggerFlag
    (PxVisualDebuggerFlags::eTRANSMIT_CONSTRAINTS, true);
mPhysics->getVisualDebugger()->setVisualDebuggerFlag
    (PxVisualDebuggerFlags::eTRANSMIT_CONTACTS, true);