![]() |
Rigs of Rods 2026.01
Soft-body Physics Simulation
|
Useful page information supplied to a pageloader.
When your page loader's loadPage() or unloadPage() is called, you are supplied with a PageInfo variable. This basically tells you what region in space is to be loaded into the page, in addition to some other useful information about that region.
Definition at line 898 of file PagedGeometry.h.
Data Fields | |
| TBounds | bounds |
| Ogre::Vector3 | centerPoint |
| int | xIndex |
| int | zIndex |
| std::vector< Ogre::Mesh * > | meshList |
| TBounds Forests::PageInfo::bounds |
The page boundaries in which all entities should be placed.
This specifies the rectangular boundary of the page. Every entity contained in the page should reside within these boundaries.
Definition at line 913 of file PagedGeometry.h.
| Ogre::Vector3 Forests::PageInfo::centerPoint |
The center of the page (simply the middle of the bounds).
Definition at line 920 of file PagedGeometry.h.
| std::vector<Ogre::Mesh*> Forests::PageInfo::meshList |
Definition at line 946 of file PagedGeometry.h.
| int Forests::PageInfo::xIndex |
The X index of the page tile.
If all the geometry pages were arranged in a big 2D grid, this would be the X index of this page in that grid.
This is mathematically equivalent to Math::Floor( bounds.left / bounds.width() ), although this should be used instead due to floating point precision issues which may occur otherwise.
Definition at line 932 of file PagedGeometry.h.
| int Forests::PageInfo::zIndex |
The Z index of the page tile.
If all the geometry pages were arranged in a big 2D grid, this would be the Z index of this page in that grid.
This is mathematically equivalent to Math::Floor( bounds.top / bounds.height() ), although this should be used instead due to floating point precision issues which may occur otherwise.
Definition at line 944 of file PagedGeometry.h.