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

Method stepSimulation

examples/RenderingExamples/TimeSeriesExample.cpp:85–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85void TimeSeriesExample::stepSimulation(float deltaTime)
86{
87 float time = m_internalData->m_timeSeriesCanvas->getCurrentTime();
88 float v = sinf(time);
89 m_internalData->m_timeSeriesCanvas->insertDataAtCurrentTime(v, 0, true);
90 v = cosf(time);
91 m_internalData->m_timeSeriesCanvas->insertDataAtCurrentTime(v, 1, true);
92 v = tanf(time);
93 m_internalData->m_timeSeriesCanvas->insertDataAtCurrentTime(v, 3, true);
94 m_internalData->m_timeSeriesCanvas->insertDataAtCurrentTime(deltaTime * 10, 2, true);
95
96 m_internalData->m_timeSeriesCanvas->nextTick();
97}
98
99void TimeSeriesExample::physicsDebugDraw(int debugDrawFlags)
100{

Callers

nothing calls this directly

Calls 3

getCurrentTimeMethod · 0.80
nextTickMethod · 0.80

Tested by

no test coverage detected