SceneEntity

Description

class Tinman.Engine.Scenes.SceneEntity

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:

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 / Constructors

Scene​Entity


public constructor SceneEntity → ()

Creates a new instance of SceneEntity.

Public / Methods

Mesh​Bound​Add


public method MeshBoundAdd → (1)

meshBound in : IMeshBound

[not-null]
The mesh bound object to add.

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.

Mesh​Bound​Remove


public method MeshBoundRemove → (1)

meshBound in : IMeshBound

[not-null]
The mesh bound object to remove.

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.

Protected / Constructors

Scene​Entity


protected constructor SceneEntity → (2)

callbackMask in : SceneObjectCallback

The value for ISceneObject.CallbackMask.

entityViewMask opt : int64 = ~0

The value for IEntityViewMask.EntityViewMask.

Creates a new instance of SceneEntity.