66 float getOccupancy(
const agx::Vec2i& terrainIndex,
int z)
const;
73 float getOccupancy(
const agx::Vec3i& terrainIndex)
const;
81 float getCompaction(
const agx::Vec2i& terrainIndex,
int z)
const;
88 float getCompaction(
const agx::Vec3i& terrainIndex)
const;
95 float getSurfaceOccupancy(
const agx::Vec2i& terrainIndex)
const;
102 float getSurfaceCompaction(
const agx::Vec2i& terrainIndex)
const;
118 void setSurfaceCompaction(
119 const agx::Vec2i& terrainIndex,
float compaction,
bool compressOccupancy =
false,
bool compressToBottom =
false);
132 void setSurfaceCompactionToDepth(
const agx::Vec2i& terrainIndex,
float compaction,
float depth);
148 void setCompaction(
const agx::Vec2i& terrainIndex,
int z,
float compaction,
bool compressOccupancy =
false);
161 void setCompaction(
const agx::Vec3i& terrainIndex,
float compaction,
bool compressOccupancy =
false);
173 float addSolidOccupancyInColumn(
174 const agx::Vec2i& terrainIndex,
float mass,
float compaction,
bool shouldAvalanche =
true);
184 void addSolidOccupancyInColumns(
agx::HashTable<
agx::Vec2i, std::pair<float, float>> table,
bool shouldAvalanche =
true);
194 float removeSolidOccupancyInColumn(
const agx::Vec2i& terrainIndex,
float occupancy,
bool shouldAvalanche =
true);
209 float addSolidOccupancyLayerInColum(
const agx::Vec2i& terrainIndex,
agx::Real layerHeight,
float compaction,
bool shouldAvalanche =
true);
224 float addSolidOccupancyInColumnToHeight(
const agx::Vec2i& terrainIndex,
agx::Real height,
float compaction,
bool shouldAvalanche =
true);
232 float removeFluidOccupancy(
const agx::Vec3i& terrainIndex,
float fluidOccupancy);
287 bool isIndexValid(
const agx::Vec3i& terrainIndex)
const;
348 int findSurfaceIndex(
const agx::Vec2i& terrainIndex)
const;
361 int getLowestAllowableDepthIndex()
const;
366 agx::Real convertOccupancyToMassKg(
float occupancy)
const;
371 agx::Real convertMassKgToOccupancy(
float mass)
const;