I have the following setup:
- A plane with an ocean modifier.
- A sphere scattered across this plane using geometry-nodes, with its Z coordinate aligned to the surface of the ocean. In other words, the spheres are "riding the waves".
- The "Time" attribute of the ocean is animated.
When playing the animation, I get the following problem:
The spheres are changing their distribution because the plane's mesh is deforming. I want to lock the spheres' XY positions, leaving the Z free to align with the waves.
This is the geometry-nodes setup for the ocean:
Thanks for any help!