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

Function gJump

physx/samples/samplecustomgravity/SampleCustomGravity.cpp:104–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102
103extern PxF32 gJumpForce;
104static void gJump(Console* console, const char* text, void* userData)
105{
106 if(!text)
107 {
108 console->out("Usage: jump <float>");
109 return;
110 }
111
112 const float val = (float)::atof(text);
113// shdfnd::printFormatted("value: %f\n", val);
114 gJumpForce = val;
115}
116
117// PT: TODO: use PhysXSampleApplication helper for this
118

Callers

nothing calls this directly

Calls 1

outMethod · 0.80

Tested by

no test coverage detected