Example #1
0
 // Update is called once per frame
 void Update()
 {
     // Add a force to simulate buoyancy
     GetComponent <Particle3D>().AddForce(ForceGenerator.GenerateForce_buoyancy(transform.position, waterHeight, maxDepth, volume, liquidDensity));
 }