MCPcopy Create free account
hub / github.com/SpartanJ/eepp / physicsCreate

Function physicsCreate

src/examples/physics/physics.cpp:566–596  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

564}
565
566void physicsCreate() {
567 // Initialize the physics engine
568 PhysicsManager::createSingleton();
569
570 mDemo.clear();
571
572 // Add the demos
573 physicDemo demo;
574
575 demo.init = &demo1Create;
576 demo.update = &demo1Update;
577 demo.destroy = &demo1Destroy;
578 mDemo.push_back( demo );
579
580 demo.init = &demo2Create;
581 demo.update = &demo2Update;
582 demo.destroy = &demo2Destroy;
583 mDemo.push_back( demo );
584
585 demo.init = &demo3Create;
586 demo.update = &demo3Update;
587 demo.destroy = &demo3Destroy;
588 mDemo.push_back( demo );
589
590 demo.init = &demo4Create;
591 demo.update = &demo4Update;
592 demo.destroy = &demo4Destroy;
593 mDemo.push_back( demo );
594
595 ChangeDemo( 0 );
596}
597
598void physicsUpdate() {
599 // Creates a joint to drag any grabable object on the scene

Callers 3

initMethod · 0.85
inputMethod · 0.85
mainFunction · 0.85

Calls 3

ChangeDemoFunction · 0.85
push_backMethod · 0.80
clearMethod · 0.45

Tested by 2

initMethod · 0.68
inputMethod · 0.68