MCPcopy Create free account
hub / github.com/bulletphysics/bullet3 / main

Function main

examples/StandaloneMain/main_console_single_example.cpp:25–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23#include "LinearMath/btHashMap.h"
24
25int main(int argc, char* argv[])
26{
27 {
28 DummyGUIHelper noGfx;
29
30 CommonExampleOptions options(&noGfx);
31 CommonExampleInterface* example = StandaloneExampleCreateFunc(options);
32
33 example->initPhysics();
34 for (int i = 0; i < 100000; i++)
35 {
36 printf("Simulating step %d\n", i);
37 example->stepSimulation(1.f / 60.f);
38 }
39 example->exitPhysics();
40
41 delete example;
42 }
43 return 0;
44}

Callers

nothing calls this directly

Calls 3

initPhysicsMethod · 0.45
stepSimulationMethod · 0.45
exitPhysicsMethod · 0.45

Tested by

no test coverage detected