[VFX] GroundAttributeType > Position to get position under the particle

Currently GroundAttributeType > Position can only return the position
under the emitter. In order to prevent a particle from going under ground
around a hill, mountain or angled terrain it would be useful to get the
position under the particle so we can clamp it. Thank you! Ref:
https://docs.flightsimulator.com/html/Developer_Mode/VFX_Editor/Nodes/GetGroundAttribute.htm

Yes! this would be very good. Regards, Raul

Hello @runshotgun This is an error from the doc, this was not done per
particle for performance reason. We’ll consider it if we have enough
performance margin at some point. @Nocturne FYI Regards, Sylvain

Would it be an option to have some of that calculation be done once every
second or 2 for example?

This would need to be discussed by the engine team. Can you post an idea about
this so this is reviewed by them?

Will do, thank you!

I got it working after some testing. You need to get the particle position,
and subtract the ground position from it. Then you can split it and take the Y
value for the height. For this to work, you need to have EmitInLocalSpace set
to false.


With this you can get the precise height of every particle, every frame.

Last I tried, ground position was at the emitter location, not on each
particles. If that works, great find and thanks for sharing!!