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

Method onInit

physx/samples/samplehelloworld/SampleHelloWorld.cpp:115–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115void SampleHelloWorld::onInit()
116{
117 if(getConsole())
118 {
119 getConsole()->addCmd("value", gValue);
120 getConsole()->addCmd("export", gExport);
121 getConsole()->addCmd("import", gImport);
122 }
123
124 PhysXSample::onInit();
125
126 mApplication.setMouseCursorHiding(true);
127 mApplication.setMouseCursorRecentering(true);
128 mCameraController.init(PxVec3(0.0f, 10.0f, 0.0f), PxVec3(0.0f, 0.0f, 0.0f));
129 mCameraController.setMouseSensitivity(0.5f);
130}
131
132void SampleHelloWorld::collectInputEvents(std::vector<const SampleFramework::InputEvent*>& inputEvents)
133{

Callers

nothing calls this directly

Calls 6

addCmdMethod · 0.80
setMouseCursorHidingMethod · 0.80
setMouseSensitivityMethod · 0.80
PxVec3Class · 0.50
initMethod · 0.45

Tested by

no test coverage detected