mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-04 20:57:49 +00:00
31 lines
568 B
C++
31 lines
568 B
C++
#pragma once
|
|
|
|
/*
|
|
Utility class - holds CornerWedge Meshes of same size for use by Geometry Pool.
|
|
*/
|
|
|
|
#include "Util/Memory.h"
|
|
#include "V8World/Mesh.h"
|
|
|
|
|
|
namespace RBX {
|
|
|
|
namespace POLY {
|
|
|
|
class CornerWedgeMesh : public Allocator<CornerWedgeMesh>
|
|
{
|
|
private:
|
|
Mesh mesh;
|
|
Vector3 LocalCofM;
|
|
|
|
public:
|
|
CornerWedgeMesh(const Vector3& size)
|
|
{
|
|
mesh.makeCornerWedge(size, LocalCofM);
|
|
}
|
|
const Mesh* getMesh() const {return &mesh;}
|
|
const Vector3& GetLocalCofMFromMesh() const { return LocalCofM; }
|
|
};
|
|
|
|
} // namespace POLY
|
|
} // namespace RBX
|