Component:DebugConeDistance: Difference between revisions

From Resonite Wiki
Automated: create new component page
 
add info
Line 3: Line 3:
|Name=Debug Cone Distance
|Name=Debug Cone Distance
}}
}}
{{stub}}
The '''DebugConeDistance''' component creates a Debug cone visual that draws lines from the list of <code>Points</code> to the surface of the cone. If the point is inside the cone, the point visual will be Cyan, if it is outside it will be red. The lines from the point to the cone are Yellow. When attached, the component will add 32 random points to <code>Points</code> that are 4 units away.


== Usage ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|Height|Float|
|Height|Float| The height of the cone.
|Radius|Float|
|Radius|Float| The radius of the cone base.
|Points|{{RootFieldType|SyncFieldList`1|[[Type:Float3|Float3]]}}|TypeAdv2=true|
|Points|{{RootFieldType|SyncFieldList`1|[[Type:Float3|Float3]]}}|TypeAdv2=true| Points that the Debug visual will draw lines to from the cone surface to the point.
}}
}}


== Behavior ==
== Usage ==
{{stub}}


== Examples ==
== Examples ==
Line 20: Line 21:
[[Category:Components:Debug{{#translation:}}|Debug Cone Distance]]
[[Category:Components:Debug{{#translation:}}|Debug Cone Distance]]
[[Category:Components{{#translation:}}|Debug Cone Distance]]
[[Category:Components{{#translation:}}|Debug Cone Distance]]
[[Category:ComponentStubs]]

Revision as of 23:55, 14 January 2025

Component image 
Debug Cone Distance component as seen in the Scene Inspector

The DebugConeDistance component creates a Debug cone visual that draws lines from the list of Points to the surface of the cone. If the point is inside the cone, the point visual will be Cyan, if it is outside it will be red. The lines from the point to the cone are Yellow. When attached, the component will add 32 random points to Points that are 4 units away.

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.
Height Float The height of the cone.
Radius Float The radius of the cone base.
Points direct SyncFieldList`1<Float3> Points that the Debug visual will draw lines to from the cone surface to the point.

Usage

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

Examples

See Also