Appearance
Position Tracker
Flare Live 3.0 · Scene Object · API type simexp.common.position_tracker.
Position Tracker moves its parent to follow a target Scene Object. Add it as a child of the object you want to move, such as a Camera, and choose the moving body as its Target. Tracking starts when Simulation is initialized and updates as the simulation advances. The parent's orientation stays fixed.
Use Transform Driver when a script should supply both position and orientation directly. Choose one enabled driver for a given parent.
Example: a Camera following a robot
text
Robot (Free Joint-Body Pair)
Camera
└── Position Tracker → Target: Robot- Create a Camera and add Position Tracker as its child.
- Set Target to the robot's root body.
- Select Free and set Offset on target to
(4, -3, 2)m. The Camera will stay at that world-space offset from the robot. - Set the Camera's initial position to the robot's starting position plus that offset. Orient it toward the robot, then select it in the viewport to check framing.
- Initialize and advance Simulation. The Camera follows translation while keeping its orientation.
To keep the Camera at a fixed world height of 2 m, select Plane, set Plane origin to (0, 0, 2) and Plane normal to (0, 0, 1). Its position is projected onto that plane after adding the offset.
Constraints
| Constraint | Result |
|---|---|
| Free | Target's world position plus Offset on target. |
| Plane | That position projected onto the world-space plane defined by Plane origin and Plane normal. |
| Line | That position projected onto the world-space line defined by Line origin and Line direction. |
Use unit-length vectors for the plane normal and line direction. A moving ground patch with an enabled tracker is treated as dynamic geometry by Gen 2. For a fixed terrain mesh, use a fixed transform instead; see boundary setup.
Properties
Values below are defaults for new objects. See common properties for shared fields, case-sensitive API paths and conditional visibility.
| API path | Constructor default / enum choices | Meaning / units | Editable in Simulation |
|---|---|---|---|
target | None | Scene Object to follow. Select its body/root when following an assembly. | No |
constraint | 0; 0=Free, 1=Plane, 2=Line | Restrict the tracked position using the plane or line settings below. | Yes |
offset_on_target | (0.0, 0.0, 0.0) | XYZ displacement from the target, in world axes and meters. | Yes, XYZ components |
plane_origin | (0.0, 0.0, 0.0) | A point on the constraint plane, in world meters. Used in Plane mode. | Yes, XYZ components |
plane_normal | (0.0, 0.0, 1.0) | World-space direction perpendicular to the plane. Supply a unit-length vector for correct projection. Used in Plane mode. | Yes, XYZ components |
line_origin | (0.0, 0.0, 0.0) | A point on the constraint line, in world meters. Used in Line mode. | Yes, XYZ components |
line_direction | (0.0, 0.0, 1.0) | World-space direction along the line. Supply a unit-length vector for correct projection. Used in Line mode. | Yes, XYZ components |
Simulation input/output
This component has no simulation input or output channels. Configure its properties before initialization, then use the viewport or Camera export to observe the tracked view.