mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 19:41:51 +00:00
Merge branch 'main' into particles-first
This commit is contained in:
commit
f04d197047
2 changed files with 12 additions and 4 deletions
|
|
@ -34,6 +34,10 @@ struct AABB {
|
|||
return (a + b) * 0.5f;
|
||||
}
|
||||
|
||||
inline AABB move(glm::vec3 pos) const {
|
||||
return AABB(a + pos, b + pos);
|
||||
}
|
||||
|
||||
/// @brief Multiply AABB size from center
|
||||
inline void scale(const glm::vec3 mul) {
|
||||
glm::vec3 center = (a + b) * 0.5f;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue