Component:BezierCurve: Difference between revisions

From Resonite Wiki
m ProbablePrime moved page BezierCurve (Component) to Component:BezierCurve: Creating component Namespace
add link
 
(2 intermediate revisions by 2 users not shown)
Line 7: Line 7:
|Name=Bezier Curve
|Name=Bezier Curve
}}
}}
Bezier curve is used along with [[Component:BezierTubeMesh|Bezier Tube Mesh]] to define the array of curve points that control the mesh's shape. See [[Component:BezierTubeMesh|Bezier Tube Mesh]] for a full example.


<!--T:2-->
<!--T:2-->
== Fields ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|Points|SyncRelayList`1|TypeString0=SyncRelayList<CurvePoint>|
|Points|{{RootFieldType|SyncRelayList`1|[[Component:CurvePoint|CurvePoint]]}}|TypeAdv0=true| A list of controlling Curve Points.
|CoordinateSpace|Slot|
|CoordinateSpace|Slot| The [[Coordinate spaces|Coordinate Space]] in which to do curve calculations in.
|AssignCurveData|SyncCurve`1|TypeString2=SyncCurve<float3>|
|AssignCurveData|{{RootFieldType|DriveRef`1|[[Type:SyncCurve`1|SyncCurve`1]]&lt;[[Type:Float3|Float3]]&gt;}}|TypeAdv2=true| The list to fill with curve data, which is the <code>Points</code> field of a [[Component:BezierTubeMesh|Bezier Tube Mesh]].
}}
}}


Line 21: Line 22:
<!--T:4-->
<!--T:4-->
== Examples ==
== Examples ==
<gallery widths=480px heights=480px>
File:BezierTubeMesh_Example_2.png|Example (part 2) of a bezier tube mesh setup
</gallery>


<!--T:5-->
<!--T:5-->
== Related Components ==
== Related Components ==
* [[Component:CurvePoint|Curve Point]]
* [[Component:BezierTubeMesh|Bezier Tube Mesh]]
</translate>
</translate>
[[Category:ComponentStubs]]
[[Category:Components{{#translation:}}|Bezier Curve]]
[[Category:Components{{#translation:}}|Bezier Curve]]
[[Category:Components:Uncategorized{{#translation:}}|Bezier Curve]]
[[Category:Components:Uncategorized{{#translation:}}|Bezier Curve]]

Latest revision as of 00:37, 24 October 2024


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


Component image 
Bezier Curve component as seen in the Scene Inspector

Bezier curve is used along with Bezier Tube Mesh to define the array of curve points that control the mesh's shape. See Bezier Tube Mesh for a full example.

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.
Points direct SyncRelayList`1<CurvePoint> A list of controlling Curve Points.
CoordinateSpace Slot The Coordinate Space in which to do curve calculations in.
AssignCurveData direct DriveRef`1<SyncCurve`1<Float3>> The list to fill with curve data, which is the Points field of a Bezier Tube Mesh.

Usage

Examples

Related Components