Home
last modified time | relevance | path

Searched refs:totalForce (Results 1 – 1 of 1) sorted by relevance

/frameworks/native/opengl/tests/gl2_cameraeye/src/com/android/gl2cameraeye/
DGL2CameraEye.java357 float[] totalForce = new float[3]; in doPhysics() local
358totalForce[0] = -mPos[0] * springStrength - mVel[0]*frictionCoeff + gMultiplier*mGForce[0]*mass; in doPhysics()
359totalForce[1] = -mPos[1] * springStrength - mVel[1]*frictionCoeff + gMultiplier*mGForce[1]*mass; in doPhysics()
360totalForce[2] = -mPos[2] * springStrength - mVel[2]*frictionCoeff + gMultiplier*mGForce[2]*mass; in doPhysics()
363 accel[0] = totalForce[0]/mass; in doPhysics()
364 accel[1] = totalForce[1]/mass; in doPhysics()
365 accel[2] = totalForce[2]/mass; in doPhysics()