MCPcopy Create free account
hub / github.com/cinder/Cinder / setup

Method setup

samples/FallingGears/src/SceneController.cpp:47–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47void SceneController::setup( AudioController *audio )
48{
49 mAudio = audio;
50
51 mGearIdentifierTab = 0;
52 mLastStepTime = 0;
53 mCurrentDecent = 0;
54 mLastFundamental = 0;
55
56 b2Vec2 gravity( 0, 10 );
57
58 mWorld.reset( new b2World( gravity ) );
59 mWorld->SetContactListener( this );
60
61 reload();
62}
63
64void SceneController::reload()
65{

Callers

nothing calls this directly

Calls 2

SetContactListenerMethod · 0.80
resetMethod · 0.45

Tested by

no test coverage detected