摘要:
Following code snippet resides in the buoyancy force generator. 1 void ParticleBuoyancy::updateForce(Particle* particle, real duration) 2 { 3 // Calculate the submersion depth. 4 real depth = particle->getPosition().y; 5 // Check if we’re out of the water. 6 if (depth >= waterHeight + ma... 阅读全文
posted @ 2014-01-09 16:59
infinityward
阅读(286)
评论(0)
推荐(0)
浙公网安备 33010602011771号