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

Function visualizeSphere

physx/source/physx/src/NpShapeManager.cpp:388–402  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

386static const PxU32 gCollisionShapeColor = PxU32(PxDebugColor::eARGB_MAGENTA);
387
388static void visualizeSphere(const PxSphereGeometry& geometry, RenderOutput& out, const PxTransform& absPose)
389{
390 out << gCollisionShapeColor; // PT: no need to output this for each segment!
391
392 out << absPose << DebugCircle(100, geometry.radius);
393
394 PxMat44 rotPose(absPose);
395 Ps::swap(rotPose.column1, rotPose.column2);
396 rotPose.column1 = -rotPose.column1;
397 out << rotPose << DebugCircle(100, geometry.radius);
398
399 Ps::swap(rotPose.column0, rotPose.column2);
400 rotPose.column0 = -rotPose.column0;
401 out << rotPose << DebugCircle(100, geometry.radius);
402}
403
404static void visualizePlane(const PxPlaneGeometry& /*geometry*/, RenderOutput& out, const PxTransform& absPose)
405{

Callers 1

visualizeFunction · 0.85

Calls 2

DebugCircleClass · 0.85
swapFunction · 0.50

Tested by

no test coverage detected