1 Hour Ago
Animal footsteps raycast optims: - On dry terrain, we read the terrain splat map instead of raycasting, one ray every 2 meters to check the animal is still on terrain - If not on terrain (rocks, base, water) we just do one ray instead of 4 - If the animal is in water, we still play the effect past the audible range to make sure you can see the water splash effects 5 wolves running around on grass, 80% less raycasts ~0.115 -> ~0.08 ms