Searched refs:totalForce (Results 1 – 1 of 1) sorted by relevance
357 float[] totalForce = new float[3]; in doPhysics() local358 … totalForce[0] = -mPos[0] * springStrength - mVel[0]*frictionCoeff + gMultiplier*mGForce[0]*mass; in doPhysics()359 … totalForce[1] = -mPos[1] * springStrength - mVel[1]*frictionCoeff + gMultiplier*mGForce[1]*mass; in doPhysics()360 … totalForce[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()