Class · inherits BasePart
TriangleMeshPart
Abstract intermediate class that manages physical geometry properties for PartOperations and MeshParts.
About TriangleMeshPart
TriangleMeshPart is an abstract intermediate class from which MeshPart
and PartOperation inherit. It was created to consolidate the
management of physical geometry properties between the two sub-classes. It
implements the read-only
CollisionFidelity and
CollisionPrecision.
Properties 4
CollisionFidelity
: CollisionFidelityNotReplicatedDetermines the level of detail the part's physics will adhere to its mesh.This property determines how the collision model of the
TriangleMeshPartrelates to the actual geometry of the mesh. This property cannot be read or manipulated by scripts during runtime.See here for a visual representation of the various options.
CollisionPrecision
: floatNotReplicatedQuantifies how precise or performant aCollisionFidelity.Tunablecollision geometry is, from0to1.This property describes the precision-to-performance tradeoff of the part's collision geometry when
TriangleMeshPart.CollisionFidelityis set toCollisionFidelity.Tunable. A value of0favors maximum performance with the simplest collision mesh, while a value of1favors maximum precision with a collision mesh that closely matches the visual mesh.FluidFidelity
: FluidFidelityNotReplicatedDetermines the geometric representation used to compute aerodynamic forces and torques.Controls which geometric representation the physics engine uses when it computes aerodynamic (fluid) forces and torques for the part. It defaults to
FluidFidelity.Automatic, in which the engine selects a representation on your behalf.FluidFidelity.Automatic— the engine chooses the representation; it currently evaluates fluid forces against the part's collision geometry.FluidFidelity.UseCollisionGeometry— fluid forces are evaluated against the part's collision geometry, matching the shape used for collision detection.FluidFidelity.UsePreciseGeometry— fluid forces are evaluated against the part's precise mesh geometry, producing more accurate forces at a higher computational cost.
Because this property has plugin-level write security, it is configured in Studio rather than assigned by runtime scripts.
This setting only affects a part while fluid forces are active for the place, which is governed by
Workspace.FluidForces(anFluidForcesvalue that defaults toDefault; setting it toExperimentalenables the aerodynamic force model). When fluid forces are not applied to the part, the chosen fidelity has no effect.MeshSize
: Vector3ReadOnlyNotReplicatedThe original size of the part's source mesh geometry, before any scaling applied throughBasePart.Size.This read-only property reports the size of the part's mesh geometry when it was loaded, as width, height, and depth in studs. It is not affected by resizing the part through
BasePart.Size, so dividingBasePart.SizebyMeshSizegives the scale factor currently applied to the mesh's visual and physical geometry.
TriangleMeshPart also has every member of BasePart. Deprecated and Roblox-only members are hidden.
Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com · Studio 0.743.0.7431133.