MCPcopy Create free account
hub / github.com/davideberly/GeometricTools / Update

Method Update

GTE/Samples/Physics/RoughPlaneSolidBox/PhysicsModule.cpp:147–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147void PhysicsModule::Update()
148{
149 // Apply a single step of the ODE solver.
150 mSolver->Update(mTime, mState, mTime, mState);
151
152 // Update for angular speed.
153 double angTmp = mAngVelCoeff * mTime;
154 double angVelMult = 1.0 - angTmp;
155 mState[4] = mTheta0 + mTime * (1.0 - 0.5 * angTmp) * mThetaDer0;
156 mState[5] = angVelMult * mThetaDer0;
157}
158
159

Callers 7

OnIdleMethod · 0.45
MoveBoxMethod · 0.45
PhysicsTickMethod · 0.45
RopeWindow3Method · 0.45
OnIdleMethod · 0.45
CreateRopeMethod · 0.45
PhysicsTickMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected