Optimise 3d physics

ok so right now my game is unplayale because of a performance problem : i have way to much scattered models of trees, and they all have a collision. to fix that, i’m kindly asking you to optimize them by deactivating the “3d physics” behavior indivudally if they are to far from the player. or at least allow us to use an event tha’s called “take an individual model” or something like that.
thanks

Why don’t you just make an event to do that? If the players distance to the trees are so amd so amount.. Disable the behaviour

Scattered models of the terrain3D is creating one static collision shape when you use the Trunk Collision method. It does not creating individual static physics bodies for each tree. So it should be very performant.

Run a profiler in the debugger to see which part of your game is bottleneck.

thanks, i didnt knew. i’ll search the lag source somewhere else

because it disables it for all the trees, even those near the player