Geo nodes crowd cleanup

So I generated a crowd test that’s moving over a large hill. I wanted the objects to be aligned to the normals of the hill. However, when they move over it, the rotations get a little jumpy. Any advice on how to smooth this out?


crowd geo nodes test.blend (1.0 MB)

Hi.
Don’t know why exactly, but if you set Rotation of the instances first and then Set Position, it seems to fix it :person_shrugging:

2 Likes

It’s because some of the rays don’t hit anymore, if the position gets set to the Hit Position first. Maybe because of some floating point error? Don’t know though:

@Azn110nm: You can do it like @stray suggested or you could offset the Source Position in the positive Z-direction by a tiny little amount:

2 Likes

Here’s an alternative setup that includes a random spin and separates the source collection objects.

crowd geo nodes test1.blend (1.1 MB)

I’m having trouble finding the “set rotation” node. Is it under a different name in 3.6?

It should be somewhere under Instances > Rotate Instances