52 Ogre::Quaternion
rotation = Ogre::Quaternion::IDENTITY;
73 void setName(std::string
const& new_name) {
name = new_name; }
76 std::vector<ProceduralPointPtr>
points;
Central state/object manager and communications hub.
Self reference-counting objects, as requred by AngelScript garbage collector.
void rebuildObjectMesh(ProceduralObjectPtr po)
Rebuilds the road mesh.
Ogre::SceneNode * getGroupingSceneNode()
Scene node under which all road meshes are attached.
virtual ~ProceduralManager() override
void deleteObjectMesh(ProceduralObjectPtr po)
Deletes the road mesh.
void addObject(ProceduralObjectPtr po)
Generates road mesh and adds to internal list.
void removeObject(ProceduralObjectPtr po)
Clears road mesh and removes from internal list.
Ogre::SceneNode * pGroupingSceneNode
ProceduralObjectPtr getObject(int pos)
std::vector< ProceduralObjectPtr > pObjects
std::string custom_groundmodel
If empty, the default ground model ("asphalt" for roads, "concrete" for others) is used for collision...
void setName(std::string const &new_name)
ProceduralPointPtr getPoint(int pos)
bool collision_enabled
Generate collision triangles?
std::vector< ProceduralPointPtr > points
void insertPoint(int pos, ProceduralPointPtr p)
void deletePoint(int pos)
virtual ~ProceduralObject() override
ProceduralRoadPtr getRoad()
void addPoint(ProceduralPointPtr p)
std::string custom_material
If empty, the default material is used.
ProceduralPoint(const ProceduralPoint &orig)
std::string comments
Comment line(s) preceding the point-line in the .TOBJ file.
virtual ~ProceduralPoint() override
Ogre::Quaternion rotation