Contains a SceneNode and its corresponding TerrainNode. More...
#include <TerrainParticleLayer.h>
Public Member Functions | |
TerrainInfo (ptr< SceneNode > n, int id) | |
Creates a new TerrainInfo. | |
Public Attributes | |
ptr< SceneNode > | node |
A SceneNode. | |
ptr< TerrainNode > | terrain |
The TerrainNode associated to node. | |
int | id |
Current terrain id. |
Contains a SceneNode and its corresponding TerrainNode.
The SceneNode is used to determine on which terrain the particle is via the worldToLocal methods. The TerrainNode is used to determine if the particle is in the bounds of the terrain.
proland::TerrainParticleLayer::TerrainInfo::TerrainInfo | ( | ptr< SceneNode > | n, | |
int | id | |||
) | [inline] |
Creates a new TerrainInfo.
n | a SceneNode. |
Current terrain id.
also used in particles to store the terrain on which they are located.
ptr<SceneNode> proland::TerrainParticleLayer::TerrainInfo::node |
A SceneNode.
The TerrainNode associated to node.