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

Method getHeight

physx/samples/samplecctsharedcode/SampleCCTJump.cpp:59–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59PxF32 Jump::getHeight(PxF32 elapsedTime)
60{
61 if(!mJump) return 0.0f;
62 mJumpTime += elapsedTime;
63 const PxF32 h = gJumpGravity*mJumpTime*mJumpTime + mV0*mJumpTime;
64 return h*elapsedTime;
65}
66

Callers 3

updateMethod · 0.45
updateMethod · 0.45
jquery.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected