How to simulate objects floating on water without a physics engine?
Posted
by
user1075940
on Game Development
See other posts from Game Development
or by user1075940
Published on 2012-12-15T18:18:49Z
Indexed on
2012/12/15
23:21 UTC
Read the original article
Hit count: 209
In my game the water movement is done in a shader using Gerstner equations. The water movement looks realistic enough for a school project but I encounter serious problem when I wanted to do sailing on waves (similar to this). I managed to do collision with land by calculating quad's vertices and normals beneath ship, however same method can not be applied to water because XZ are displaced and Y is calculated in a shader :(
How to approach this problem ?
Is it possible to retrieve transformed grid from shader?
Unfortunately no external physics libraries can be used.
© Game Development or respective owner