MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / getVoxelOffset

Method getVoxelOffset

game/state/tilemap/tileobject.h:78–78  ·  view source on GitHub ↗

Vector from voxel map top left back corner to object center

Source from the content-addressed store, hash-verified

76 virtual bool hasVoxelMap(bool los [[maybe_unused]]) const { return false; }
77 // Vector from voxel map top left back corner to object center
78 virtual Vec3<float> getVoxelOffset() const { return bounds_div_2; }
79 virtual Vec3<float> getVoxelCentrePosition() const { return {0.0, 0.0, 0.0}; }
80 Vec3<float> getBounds() const { return bounds; }
81

Callers 2

findCollisionMethod · 0.45
getMuzzleLocationMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected