Component:TestFakeViveTracker: Difference between revisions

From Resonite Wiki
Automated: create new component page
 
debug
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
|Name=Test Fake Vive Tracker
|Name=Test Fake Vive Tracker
}}
}}
{{stub}}
The '''TestFakeViveTracker''' component simulates a vive Tracker for <code>User</code> that has the position and rotation of the slot this component is on. This allows for making fake trackers that can be used to control the <code>User</code>'s IK as a real Tracker would. It even """tricks""" the input system into fully seeing this as a Tracker, even generating a visual for the user. The tracker device's position/rotation is based on its position/rotation in global space compared to <code>User</code>'s root slot global position/rotation.
 
{{Template:Debug}}


== Usage ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|Id|String|
|Id|String| Upon attaching is a random GUID. Can be changed which makes a new Tracker object. If identical to another older tracker the user has used before, will take on the old tracker's identity and settings.
|IsTracking|Bool|
|IsTracking|Bool| Controls whether the tracker has lost tracking.
|User|{{RootFieldType|UserRef}}|TypeAdv2=true|
|User|{{RootFieldType|UserRef}}|TypeAdv2=true| The user this tracker shoul
}}
}}


== Behavior ==
== Usage ==
Attach to a slot and preferably parent it under the <code>User</code> to create a new tracker for the targeted <code>User</code>. a user is needed for this component to work.


== Examples ==
== Examples ==
{{stub}}


== See Also ==
== See Also ==
Line 20: Line 24:
[[Category:Components:Debug{{#translation:}}|Test Fake Vive Tracker]]
[[Category:Components:Debug{{#translation:}}|Test Fake Vive Tracker]]
[[Category:Components{{#translation:}}|Test Fake Vive Tracker]]
[[Category:Components{{#translation:}}|Test Fake Vive Tracker]]
[[Category:ComponentStubs]]

Latest revision as of 02:12, 15 February 2025

Component image 
Test Fake Vive Tracker component as seen in the Scene Inspector

The TestFakeViveTracker component simulates a vive Tracker for User that has the position and rotation of the slot this component is on. This allows for making fake trackers that can be used to control the User's IK as a real Tracker would. It even """tricks""" the input system into fully seeing this as a Tracker, even generating a visual for the user. The tracker device's position/rotation is based on its position/rotation in global space compared to User's root slot global position/rotation.

This game element is a debug item. Elements like this may be removed at any time without warning, and creations should not rely on it.

Fields

Fields
Name Type Description
persistent Bool Determines whether or not this item will be saved to the server.
UpdateOrder Int Controls the order in which this component is updated.
Enabled Bool Controls whether or not this component is enabled. Some components stop their functionality when this field is disabled, but some don't.
Id String Upon attaching is a random GUID. Can be changed which makes a new Tracker object. If identical to another older tracker the user has used before, will take on the old tracker's identity and settings.
IsTracking Bool Controls whether the tracker has lost tracking.
User direct UserRef The user this tracker shoul

Usage

Attach to a slot and preferably parent it under the User to create a new tracker for the targeted User. a user is needed for this component to work.

Examples

This article or section is a Stub. You can help the Resonite Wiki by expanding it.

See Also