Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/nailuj05/FusionWater into main
Browse files Browse the repository at this point in the history
  • Loading branch information
nailuj05 committed May 12, 2022
2 parents 8422c7a + e66f8ac commit 2779d65
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Scripts/BasicFluidInteractor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ public class BasicFluidInteractor : BaseFluidInteractor
{
public override void FluidUpdate()
{
float difference = transform.position.y - fluid.transform.position.y;
var fluidSurface = fluid.coll ? fluid.coll.bounds.max.y : fluid.transform.position.y;
float difference = transform.position.y - fluidSurface;

if(difference < 0)
{
Expand Down

0 comments on commit 2779d65

Please sign in to comment.