(3 intermediate revisions by the same user not shown)
Line 3:
Line 3:
|Name=Tip Touch Source
|Name=Tip Touch Source
}}
}}
{{stub}}
The '''TipTouchSource''' component is responsible for interaction with touchable objects like buttons and touch buttons. This component gains functionality after being activated by a [[Component:AvatarHandDataAssigner]] upon avatar equip.
== Usage ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|AutoUpdateUser|User|
|AutoUpdateUser|User| which user should be updating this component's logic. Defaults to active user if not filled.
|OutOfSightAngle|Float|
|OutOfSightAngle|Float| disables the function of this component if the updating user is looking more than this many degrees away from this component's slot.
|MaxTouchPenetrationDistance|Float|
|MaxTouchPenetrationDistance|Float| How far it can go into the touchable's collider before its not considered as touching.
|CustomFilter|{{RootFieldType|SyncDelegate`1|[[Type:Func`3|Func`3]]<[[Type:ICollider|ICollider]], [[Type:Int|Int]], [[Type:Bool|Bool]]>}}|TypeAdv3=true| similar to [[Component:MeshUVRaycastPortal|UVRaycastPortal's]] <code>Filter</code> field. Internal.
|UseUserSpaceForDistance|Bool|
|UseUserSpaceForDistance|Bool| whether to use local space for distance or use absolute world distance for distance.
|TouchDistance|Float|
|TouchDistance|Float| how far in meters that this can touch things
|MaxDistance|Float|
|MaxDistance|Float| the maximum distance before hovering doesn't register
|Offset|Float3|
|Offset|Float3| the offset for everything this component does from the slot this component is on.
|Direction|Float3|
|Direction|Float3| the direction this can touch things.
}}
}}
== Behavior ==
== Usage ==
{{stub}}
== Examples ==
== Examples ==
Used on the index finger of user hands so that it can physically press buttons.
The TipTouchSource component is responsible for interaction with touchable objects like buttons and touch buttons. This component gains functionality after being activated by a Component:AvatarHandDataAssigner upon avatar equip.