-
in the above tutorial the "grass" is represented by its own agent, would it be possible instead for the grass to be represented by a 2d array to represent the grass values across the x and y coordinates - and then use host functions to interact with this array (e.g update amount of grass in all coordinates within a specific distance to an agent)? If it's possible/viable then would it be a good approach? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
We recently introduced a new feature of environment 'macro environment properties'. These sound appropriate for your described use-case.
Other relevant links from the userguide: As these are a feature new to FLAMEGPU2, not present in FLAMEGPU1, any feedback would be really useful. It's possible we'll tweak the API in future if users are finding it a bit too hard to use correctly, e.g. with the atomically backed agent function accessors. |
Beta Was this translation helpful? Give feedback.
We recently introduced a new feature of environment 'macro environment properties'. These sound appropriate for your described use-case.