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

Method setupFallingGears

samples/FallingGears/src/SceneController.cpp:136–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136void SceneController::setupFallingGears()
137{
138 mIslands.resize( 2 );
139
140 float yOffset = 0;
141 for( auto &islandGroup : mIslands ) {
142 islandGroup.clear();
143 for( size_t i = 0; i < 4; i++ ) {
144 islandGroup.push_back( makeIsland() );
145 }
146
147 reConfigIslandGroup( islandGroup, yOffset );
148 yOffset -= pointsToMeters( app::getWindowHeight() * 0.8f );
149 }
150}
151
152vector<ci::vec2> SceneController::calcNextOuterBumperVerts( float baseHeight, float topHeight, float baseWidth, float topWidth ) const
153{

Callers

nothing calls this directly

Calls 5

pointsToMetersFunction · 0.85
getWindowHeightFunction · 0.85
resizeMethod · 0.45
clearMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected