This commit is contained in:
watrabi
2025-09-18 17:55:52 -04:00
commit 977f1ff4b8
15030 changed files with 17324420 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
#pragma once
/*
Utility class - holds RightAngleRamp Meshes of same size for use by Geometry Pool.
*/
#include "Util/Memory.h"
#include "V8World/Mesh.h"
namespace RBX {
namespace POLY {
class RightAngleRampMesh : public Allocator<RightAngleRampMesh>
{
private:
Mesh mesh;
Vector3 LocalCofM;
public:
RightAngleRampMesh(const Vector3& size)
{
mesh.makeRightAngleRamp(size, LocalCofM);
}
const Mesh* getMesh() const {return &mesh;}
const Vector3& GetLocalCofMFromMesh() const { return LocalCofM; }
};
} // namespace POLY
} // namespace RBX