Component:ConvexHullMesh: Difference between revisions

From Resonite Wiki
Automated: create new component page
 
Add info
 
(5 intermediate revisions by 2 users not shown)
Line 3: Line 3:
|Name=Convex Hull Mesh
|Name=Convex Hull Mesh
}}
}}
{{stub}}
The '''ConvexHullMesh''' component is used to generate a Convex Hull Mesh using a series of <code>Points</code> to wrap around.
 
The <code>Points</code> field is not editable currently without [[Mods]].


== Usage ==
== Usage ==
{{Table ComponentFields
{{Table ComponentFields
|HighPriorityIntegration|Bool|
|HighPriorityIntegration|Bool|{{Asset HighPriorityIntegration Field}}
|OverrideBoundingBox|Bool|
|OverrideBoundingBox|Bool| {{Template:Override Bounding Box}}
|OverridenBoundingBox|BoundingBox|
|OverridenBoundingBox|BoundingBox| {{Template:Overridden Bounding Box}}
|Profile|ColorProfile|
|Profile|ColorProfile| {{Template:ProceduralMeshColorProfile}}
|Points|{{RootFieldType|SyncArray`1|[[Type:Float3|Float3]]}}|TypeAdv4=true|
|Points|{{RootFieldType|SyncArray`1|[[Type:Float3|Float3]]}}|TypeAdv4=true| The points in local space this mesh is trying to shrink wrap around.
|FlatShading|Bool|
|FlatShading|Bool| Whether the geometry should be not smooth.
|MinVertexDistance|Double|
|MinVertexDistance|Double| the distance by minimum 2 <code>Points</code> can be before they're automatically merged.
}}
 
== Sync Delegates ==
{{Table ComponentTriggers
|BakeMesh()|[[Type:Action|Action]]|{{Template:BakeMeshSyncMethod}}
}}
}}


== Behavior ==
== Usage ==


== Examples ==
== Examples ==
Line 24: Line 31:
[[Category:Components:Uncategorized{{#translation:}}|Convex Hull Mesh]]
[[Category:Components:Uncategorized{{#translation:}}|Convex Hull Mesh]]
[[Category:Components{{#translation:}}|Convex Hull Mesh]]
[[Category:Components{{#translation:}}|Convex Hull Mesh]]
[[Category:ComponentStubs]]

Latest revision as of 21:13, 10 November 2024

Component image 
Convex Hull Mesh component as seen in the Scene Inspector

The ConvexHullMesh component is used to generate a Convex Hull Mesh using a series of Points to wrap around.

The Points field is not editable currently without Mods.

Usage

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.
HighPriorityIntegration Bool If true, integrating this asset (e.g. processing procedural assets) gets higher priority than assets with this flag off. An example is user laser procedural meshes.
OverrideBoundingBox Bool Force the bounding box calculated from this component to use OverridenBoundingBox instead of calculating when requested.
OverridenBoundingBox BoundingBox the bounding box this component should say it has when OverrideBoundingBox is enabled. Useful for bounding box calculations with Flux, or changing the selection box for this component when rendered.
Profile ColorProfile The profile that the vertex colors for this mesh should be displayed in.
Points array of Float3 The points in local space this mesh is trying to shrink wrap around.
FlatShading Bool Whether the geometry should be not smooth.
MinVertexDistance Double the distance by minimum 2 Points can be before they're automatically merged.

Sync Delegates

Triggers
Method Name Method type and Arguments. Description
BakeMesh() Action Bake meshes is a sync method that creates a static mesh component with this component, replaces all references to this component with the static mesh component, then deletes this component.

Usage

Examples

See Also