LoveXR Body Tracking — Godot 4 SDK (beta)

Copy scripts/outside_in_pose.gd and outside_in_tracker.gd into res://scripts/.
No Unity, C#, external Godot plugins or autoloads are needed. Android exports
need INTERNET permission. Tested with Godot 4.7.2; actual headset timing and
body-model accuracy require device testing.

After the user chooses Connect phone:
 var tracker = load("res://scripts/outside_in_tracker.gd").new()
 add_child(tracker)
 tracker.kicked.connect(func(kick): print(kick.kind, kick.right, kick.power))
 tracker.start_tracking()

Display tracker.code once available. On the phone open
https://lovexr.ai/tools/body-tracking/ and enter the code. Camera permission
is requested on the phone. No insecure camera-origin setting is needed.

During setup only: tracker.set_preview(true) after tracker.opened is true.
Connect preview_changed(texture) to your UI. Always call set_preview(false)
when closing setup. The preview is temporary; no video is stored by the relay.
Normal gameplay sends 240-byte pose packets, not camera video.

tracker.tracking() reports fresh, visible feet/body. tracker.frame.points and
visibility are hip-relative camera landmarks in model metres; they are not
calibrated room/world coordinates. tracker.detector.steps_per_second is also
available. kick.kind is front, side, roundhouse or back. world_direction(kick,
head) converts its body-frame direction around a Godot head's heading (-Z).
Call stop_tracking() to explicitly turn off or leave the experience.

This SDK supplies poses and detected gestures. Your game decides animation,
collision, damage and multiplayer authority. It does not promise full-body IK.
The LoveXR project option uses player22; the standalone SDK works independently.
Sources are first-party scripts. No models, credentials, paid dependencies or
customer scenes are bundled. MediaPipe remains a dependency of the phone page.
