MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/PhysX / visualize

Method visualize

physx/source/physx/src/NpRigidStatic.cpp:147–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145
146#if PX_ENABLE_DEBUG_VISUALIZATION
147void NpRigidStatic::visualize(Cm::RenderOutput& out, NpScene* scene)
148{
149 NpRigidStaticT::visualize(out, scene);
150
151 if (getScbRigidStaticFast().getActorFlags() & PxActorFlag::eVISUALIZATION)
152 {
153 Scb::Scene& scbScene = scene->getScene();
154 PxReal scale = scbScene.getVisualizationParameter(PxVisualizationParameter::eSCALE);
155
156 //visualize actor frames
157 PxReal actorAxes = scale * scbScene.getVisualizationParameter(PxVisualizationParameter::eACTOR_AXES);
158 if (actorAxes != 0)
159 out << getGlobalPose() << Cm::DebugBasis(PxVec3(actorAxes));
160 }
161}
162#endif
163

Callers

nothing calls this directly

Calls 6

DebugBasisClass · 0.85
visualizeFunction · 0.70
PxVec3Class · 0.50
getActorFlagsMethod · 0.45
getSceneMethod · 0.45

Tested by

no test coverage detected