mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-05 05:07:48 +00:00
fahhh
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
#pragma once
|
||||
|
||||
#include "V8World/Poly.h"
|
||||
#include "V8World/GeometryPool.h"
|
||||
#include "V8World/CornerWedgeMesh.h"
|
||||
#include "V8World/BlockMesh.h"
|
||||
#include "V8World/BulletGeometryPoolObjects.h"
|
||||
|
||||
namespace RBX {
|
||||
|
||||
class CornerWedgePoly : public Poly {
|
||||
public:
|
||||
typedef GeometryPool<Vector3, POLY::CornerWedgeMesh, Vector3Comparer> CornerWedgeMeshPool;
|
||||
typedef GeometryPool<Vector3, BulletCornerWedgeShapeWrapper, Vector3Comparer> BulletCornerWedgeShapePool;
|
||||
|
||||
/*override*/ Matrix3 getMoment(float mass) const;
|
||||
/*override*/ Vector3 getCofmOffset() const;
|
||||
/*override*/ CoordinateFrame getSurfaceCoordInBody( const size_t surfaceId ) const;
|
||||
/*override*/ bool isGeometryOrthogonal( void ) const { return false; }
|
||||
/*override*/ bool setUpBulletCollisionData(void);
|
||||
/*override*/ void setSize(const G3D::Vector3& _size);
|
||||
|
||||
private:
|
||||
typedef Poly Super;
|
||||
|
||||
CornerWedgeMeshPool::Token aCornerWedgeMesh;
|
||||
BulletCornerWedgeShapePool::Token bulletCornerWedgeShape;
|
||||
|
||||
/*override*/ virtual Vector3 getCenterToCorner(const Matrix3& rotation) const;
|
||||
|
||||
void updateBulletCollisionData();
|
||||
|
||||
protected:
|
||||
// Geometry Overrides
|
||||
/*override*/ virtual GeometryType getGeometryType() const {return GEOMETRY_CORNERWEDGE;}
|
||||
|
||||
// Poly Overrides
|
||||
/*override*/ void buildMesh();
|
||||
/*override*/ size_t getFaceFromLegacyNormalId( const NormalId nId ) const;
|
||||
|
||||
};
|
||||
|
||||
} // namespace
|
||||
Reference in New Issue
Block a user