Searched refs:mass (Results 1 – 2 of 2) sorted by relevance
351 float mass = 10.f; 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()
59 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);