TrackedBodyManager
Inherits from: MonoBehaviour
Serialized Fields
| Field |
Type |
Default |
Description |
enableWorldFrameCoast |
bool |
true |
Hold a stationary body in the world frame while it is out of the camera's view, instead of treating that as a tracking failure. |
savedViewRecoveryCapacity |
int |
8 |
How many views of a body are kept as places a recovery can start from. 0 keeps none and makes no recovery attempt. |
Properties
| Property |
Type |
Access |
Description |
Instance |
TrackedBodyManager |
get |
|
BadFrameCount |
int |
get/set |
|
GoodFrameCount |
int |
get/set |
|
WasTracking |
bool |
get/set |
|
FramesSinceTrackingStarted |
int |
get/set |
|
Phase |
ARPhase |
get/set |
|
LastGoodPosition |
Vector3 |
get/set |
|
LastGoodRotation |
Quaternion |
get/set |
|
HasLastGoodPose |
bool |
get/set |
|
IsARPoseFusionActive |
bool |
get |
Whether pose fusion is in play. |
Methods
| Method |
Returns |
Description |
ResetAll(bool forgetLearned = false) |
void |
Reset every body as ResetBody resets one. |
ResetBody(TrackedBody body, bool forgetLearned = false) |
void |
Return a body to the pose it was placed at, stop its tracking and start its lifecycle over. With forgetLearned false the body keeps what it learned while it tracked (its saved-view bank, the poses it was accepted at and what its views normally achieve). With true it forgets all three. |
SetBodyWorldPose(TrackedBody body, Vector3 position, Quaternion rotation) |
void |
Manually set the world pose for a body (useful for external initialization). |
RefreshARAvailability() |
void |
Re-detect AR Foundation availability. Call if AR session state changes. |
UpdateAllBodies() |
void |
Updates all tracked bodies: fetches status from native and prepares for state processing. Called each frame by FormulaTrackingManager. State machine logic runs in OnBeforeRender via ProcessActiveBody. |