Problem: The water height is the level that the water will be at and the ball is suppose to float on that level. Initially the water height was being calculated by just adding a certain integer to the grounds position to force to ball to be above that line.
Impact: The ball would look like it is constantly bouncing and it does not look proper. The ball would fall normally in between levels but would mess up if past a certain y axis.
Solution: Change the water height to be the difference the ball is from the point i make as the water height. So that is calculating the displacement of the ball in the y axis from the point of origin(the water level).
No comments:
Post a Comment