Component:DebugLinePoint: Difference between revisions

From Resonite Wiki
Automated: create new component page
 
add info
Line 3: Line 3:
|Name=Debug Line Point
|Name=Debug Line Point
}}
}}
{{stub}}
The '''DebugLinePoint''' component draws a line from <code>LinePoint0</code> to <code>LinePoint1</code> which is the central line. When attached, it generates 128 random Float3's which get added to <code>Points</code>. Every point in said list have a line drawn from them to the closest point on the central line.


== Usage ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|LinePoint0|Float3|
|LinePoint0|Float3| The starting point of the central line.
|LinePoint1|Float3|
|LinePoint1|Float3| the ending point of the central line.
|Points|{{RootFieldType|SyncFieldList`1|[[Type:Float3|Float3]]}}|TypeAdv2=true|
|Points|{{RootFieldType|SyncFieldList`1|[[Type:Float3|Float3]]}}|TypeAdv2=true| A list of points to draw lines from to the closest point on the central line.
}}
}}
== Behavior ==


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


== See Also ==
== See Also ==
Line 20: Line 19:
[[Category:Components:Debug{{#translation:}}|Debug Line Point]]
[[Category:Components:Debug{{#translation:}}|Debug Line Point]]
[[Category:Components{{#translation:}}|Debug Line Point]]
[[Category:Components{{#translation:}}|Debug Line Point]]
[[Category:ComponentStubs]]

Revision as of 04:35, 15 January 2025

Component image 
Debug Line Point component as seen in the Scene Inspector

The DebugLinePoint component draws a line from LinePoint0 to LinePoint1 which is the central line. When attached, it generates 128 random Float3's which get added to Points. Every point in said list have a line drawn from them to the closest point on the central line.

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.
LinePoint0 Float3 The starting point of the central line.
LinePoint1 Float3 the ending point of the central line.
Points direct SyncFieldList`1<Float3> A list of points to draw lines from to the closest point on the central line.

Examples

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

See Also