multimesh displacing

Godot Version

4.7

Question

Hello, im new, and im trying to make a 3d ‘game’ where you walk trough a landscape of pebbles that move away when you walk towards them. so far i have made different meshes, and hang them onto different multimeshinstance3D nodes and i have the player in the scene. how can i best have these pebbles move out of the way?

Pass player position to the shader and displace vertices in the vertex function depending on instance’s distance to the player.

1 Like

thank you thats very helpfull :slight_smile: