SceneEntity
Description
- Derived from
-
SceneEntityBase abstract
ISceneEntityContainer
ITerrainEntityContainer - Extended by
-
Example_SceneEntity sealed
Example_TextureStreaming abstract
Vehicle
Default implementation of the ISceneEntity interface.
To aggregate child objects including automatic scene attach / detach handling via SceneObject.ChildBindings, the following helper methods may be used:
-
ISceneEntityContainer.EntityAdd / ISceneEntityContainer.EntityRemove
Logical child entities -
ITerrainEntityContainer.TerrainDecalAdd / ITerrainEntityContainer.TerrainDecalRemove
ITerrainEntityContainer.TerrainModelAdd / ITerrainEntityContainer.TerrainModelRemove
2D decals / 3D models -
MeshBoundAdd / MeshBoundRemove
Custom objects that depend on the terrain mesh, for example ITerrainTransform objects.
The ISceneObject.QueryDistance method uses ISpatialQuery.DistanceTo1 for the contained TerrainModel objects and ISceneObject.QueryDistance for the contained ISceneEntity objects.
The ISceneObject.QueryRay method generates ModelResult objects for the contained TerrainModel objects.
Public / Methods
MeshBoundAdd
Adds an aggregated IMeshBound to this scene entity.
The SceneObject.MeshAttach method will be called automatically, to bind the given object to the terrain mesh.
- See also
MeshBoundRemove
Removes the given aggregated IMeshBound from this scene entity.
The SceneObject.MeshDetach method will be called automatically, to unbind the given object from the terrain mesh.
- See also