Node Class |
Namespace: GeonBit.Core.Graphics
public class Node
The Node type exposes the following members.
Name | Description | |
---|---|---|
![]() | CanHoldEntities |
Get if this node can hold renderable entities (if not, it means this node is just for child nodes, and not for entities.
|
![]() | Empty |
Return true if this node is empty.
|
![]() | HaveEntities |
Get if this node have any entities in it.
|
![]() | LastDrawFrame |
Last frame this node was drawn.
|
![]() | LocalTransformations |
Return local transformations matrix (note: will recalculate if needed).
|
![]() | Parent |
Parent node.
|
![]() | Position |
Get / Set node local position.
|
![]() | PositionX |
Alias to access position X directly.
|
![]() | PositionY |
Alias to access position Y directly.
|
![]() | PositionZ |
Alias to access position Z directly.
|
![]() | Rotation |
Get / Set node local rotation.
|
![]() | RotationOrder |
Get / Set the order in which we apply local rotation in this node.
|
![]() | RotationType |
Get / Set the rotation type (euler / quaternion).
|
![]() | RotationX |
Alias to access rotation X directly.
|
![]() | RotationY |
Alias to access rotation Y directly.
|
![]() | RotationZ |
Alias to access rotation Z directly.
|
![]() | Scale |
Get / Set node local scale.
|
![]() | ScaleX |
Alias to access scale X directly.
|
![]() | ScaleY |
Alias to access scale Y directly.
|
![]() | ScaleZ |
Alias to access scale Z directly.
|
![]() | TransformationsOrder |
Get / Set the order in which we apply local transformations in this node.
|
![]() | TransformVersion |
Transformation version is a special identifier that changes whenever the world transformations
of this node changes. Its not necessarily a sequence, but if you check this number for changes every
frame its a good indication of transformation change.
|
![]() | UseExternalTransformations |
If true, it means transformations are coming from external source (like a physical body).
If you set it true, this node will no longer calculate transformations on its own, and you'll need to use
'SetWorldTransformsMatrix()' to update the world matrix.
|
![]() | Visible |
Is this node currently visible?
|
![]() | WasDrawnThisFrame |
Get if this node was drawn in current frame.
|
![]() | WorldPosition |
Get position in world space.
|
![]() | WorldRotation |
Get Rotastion in world space.
|
![]() | WorldScale |
Get Scale in world space.
|
![]() | WorldTransformations |
Return world transformations matrix (note: will recalculate if needed).
|
Name | Description | |
---|---|---|
![]() | AddChildNode |
Add a child node to this node.
|
![]() | AddEntity |
Add an entity to this node.
|
![]() | BuildTransformationsMatrix |
Build matrix from node transformations.
|
![]() | Clone |
Clone this scene node.
|
![]() | Draw |
Draw the node and its children.
|
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | FindChildNode |
Find and return first child node by identifier.
|
![]() | ForceFullUpdate |
Force this node to update transformation and recalculate bounding box and sphere.
|
![]() | GetBoundingBox |
Get up-to-date bounding box of this node and all its child nodes, and recalculate it if needed.
|
![]() | GetBoundingSphere |
Get up-to-date bounding sphere of this node and all its child nodes, and recalculate it if needed.
|
![]() | GetDebugString |
Get a debug string representation of this scene node and its children.
|
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | OnChildWorldMatrixChange |
Called every time one of the child nodes recalculate world transformations.
|
![]() | RemoveChildNode |
Remove a child node from this node.
|
![]() | RemoveEntity |
Remove an entity from this node.
|
![]() | RemoveFromParent |
Remove this node from its parent.
|
![]() | ResetTransformations |
Reset all local transformations.
|
![]() | SetWorldTransforms |
Set world transformations from external source.
To prevent the node from overriding these changes, set 'UseExternalTransformations' to true.
|
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | Transform |
Transform a given transformations and return the result matrix.
|
![]() | Translate |
Move position by vector.
|
![]() | UpdateBoundingBox |
Recalculate bounding box of this node and all its child nodes.
|
![]() | UpdateBoundingSphere |
Calculate bounding sphere and return results.
This also set internal caching.
|
![]() | UpdateTransformations |
Update transformations for this node and its children, if needed.
|
Name | Description | |
---|---|---|
![]() ![]() | BoundingShapesTtl |
For how many rendering frames bounding box / bounding sphere hold in cache.
|
![]() | DisableCulling |
Is culling enabled for this scene node.
Note: while this is not used for based node types, its a generic property for inheriting nodes.
|
![]() | Identifier |
Optional identifier we can give to nodes.
|
![]() | UserData |
Optional user data we can attach to nodes.
|