mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-05 13:17:49 +00:00
fahhh
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
#pragma once
|
||||
|
||||
/*
|
||||
Utility class - holds ParallelRamp Meshes of same size for use by Geometry Pool.
|
||||
*/
|
||||
|
||||
#include "Util/Memory.h"
|
||||
#include "V8World/Mesh.h"
|
||||
|
||||
|
||||
namespace RBX {
|
||||
|
||||
namespace POLY {
|
||||
|
||||
class ParallelRampMesh : public Allocator<ParallelRampMesh>
|
||||
{
|
||||
private:
|
||||
Mesh mesh;
|
||||
Vector3 LocalCofM;
|
||||
|
||||
public:
|
||||
ParallelRampMesh(const Vector3& size)
|
||||
{
|
||||
mesh.makeParallelRamp(size, LocalCofM);
|
||||
}
|
||||
const Mesh* getMesh() const {return &mesh;}
|
||||
const Vector3& GetLocalCofMFromMesh() const { return LocalCofM; }
|
||||
};
|
||||
|
||||
} // namespace POLY
|
||||
} // namespace RBX
|
||||
Reference in New Issue
Block a user