Home
last modified time | relevance | path

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

/frameworks/native/opengl/tests/gl2_cameraeye/src/com/android/gl2cameraeye/
DGL2CameraEye.java351 float mass = 10.f; in doPhysics() local
358 … 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()
/frameworks/rs/tests/java_api/RsNbody/src/com/example/android/rs/nbody_gl/
Dnbody.rscript59 float4 mass = rsGetElementAt_float4(positions, i);
60 float3 dir = mass.xyz - in.xyz;
61 float dist = distance(mass.xyz, in.xyz);
65 force += dir * (mass.w * invDistCubed);