|
RigsofRods
Soft-body Physics Simulation
|
Go to the documentation of this file.
28 #include <OgreVector3.h>
29 #include <Terrain/OgreTerrain.h>
30 #include <Terrain/OgreTerrainGroup.h>
72 std::shared_ptr<RoR::OTCFile>
m_spec;
78 Ogre::Vector3
mPos = Ogre::Vector3::ZERO;
Ogre::DataStreamPtr getPageConfig(int x, int z)
Ogre::Vector3 getNormalAt(float x, float y, float z)
~TerrainGeometryManager()
float getHeightAt(float x, float z)
RoR::Terrain * terrainManager
float getHeightAtTerrainPosition(float x, float z)
void SetupGeometry(RoR::OTCPage &page, bool flat=false)
void configureTerrainDefaults()
Ogre::Vector3 getMaxTerrainSize()
bool InitTerrain(std::string otc_filename)
void UpdateMainLightPosition()
Central state/object manager and communications hub.
bool m_was_new_geometry_generated
std::shared_ptr< RoR::OTCFile > m_spec
Ogre::TerrainGroup * m_ogre_terrain_group
TerrainGeometryManager(Terrain *terrainManager)
bool getTerrainImage(int x, int y, Ogre::Image &img)
bool loadTerrainConfig(Ogre::String filename)
void SetupBlendMaps(RoR::OTCPage &page, Ogre::Terrain *t)
this class handles all interactions with the Ogre Terrain system
void SetupLayers(RoR::OTCPage &page, Ogre::Terrain *terrain)
Ogre::TerrainGroup * getTerrainGroup()