Class TransformTree<T>
A concrete TransformTree node whose inclusion criterion is the presence of a
T Component on a GameObject.
Inherited Members
Namespace: Unity.SimulationPro.Foundation
Assembly: Unity.SimulationPro.Foundation.dll
Syntax
public class TransformTree<T> : TransformTree where T : Component
Type Parameters
| Name | Description |
|---|---|
| T | The Component type used to identify transform-tree participants. Typical values are ArticulationBody or Transform. |
Constructors
TransformTree(GameObject, string)
Constructs the transform tree rooted at rootGameObject, recursively adding
child nodes for every descendant GameObject that carries a T component.
Declaration
public TransformTree(GameObject rootGameObject, string parent = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | rootGameObject | The root GameObject of the hierarchy to represent. |
| string | parent | The ROS frame ID of this node's parent frame, or null to treat this node as the tree root (anchored to the global frame). |
Methods
PropagateTimeStamp(double)
Updates the timestamp on this node and all descendant nodes.
Declaration
public override void PropagateTimeStamp(double newTime)
Parameters
| Type | Name | Description |
|---|---|---|
| double | newTime | The new simulation time in seconds, typically sourced from Now. |