Class TrackModelNode
Tracks the position of a node in a model.
Inheritance
TrackModelNode
Implements
Inherited Members
Namespace: Evergine.Components.XR
Assembly: Evergine.Components.dll
Syntax
public class TrackModelNode : Behavior, IDependencyObject
Fields
MeshComponent
The mesh component to get the model.
Declaration
[BindComponent(false, false, BindComponentSource.Owner, null, true)]
public MeshComponent MeshComponent
Field Value
| Type | Description |
|---|---|
| MeshComponent |
NodeIndex
Gets the node index.
Declaration
public int NodeIndex
Field Value
| Type | Description |
|---|---|
| int |
Remarks
Only works when the SelectionStrategy is ByNodeIndex.
SelectionStrategy
Gets or sets the selection strategy.
Declaration
public TrackModelNode.SelectionNodeStrategy SelectionStrategy
Field Value
| Type | Description |
|---|---|
| TrackModelNode.SelectionNodeStrategy |
transform
Owner entity's Transform3D component.
Declaration
[BindComponent(true, true, BindComponentSource.Owner, null, true)]
protected Transform3D transform
Field Value
| Type | Description |
|---|---|
| Transform3D |
Properties
Model
Gets or sets the model.
Declaration
public Model Model { get; set; }
Property Value
| Type | Description |
|---|---|
| Model |
Methods
OnAttached()
Invoked when the object is attached to the system.
Declaration
protected override bool OnAttached()
Returns
| Type | Description |
|---|---|
| bool | True if everything is OK. |
Overrides
OnDetached()
Invoked when the object is detached.
Declaration
protected override void OnDetached()
Overrides
Update(TimeSpan)
Allows this instance to execute custom logic during its Update.
Declaration
protected override void Update(TimeSpan gameTime)
Parameters
| Type | Name | Description |
|---|---|---|
| TimeSpan | gameTime | The game time. |