MeshPart

MeshPart : BasePart

Overview

MeshPart is a class that defines externally created and imported 3D objects, which inherit BasePart and act in a similar role to Part.

Description

The MeshPart class is a type of BasePart that allows developers to use custom 3D meshes in their games. These meshes are created in external 3D modeling software (e.g., Blender, Maya) and imported into OVERDARE Studio as MeshPart objects.

Properties

DoubleSided

bool

Determines whether to render both faces of polygons in the mesh.

Code Samples

local MeshPart = script.Parent

print(MeshPart.DoubleSided)

HasJointOffset

bool

This property indicates whether the MeshPart has an offset applied to its joint connections, which affects how the MeshPart aligns with other objects or parts in the 3D space.

Code Samples

local MeshPart = script.Parent

print(MeshPart.HasJointOffset)

HasSkinnedMesh

bool

This property determines whether the MeshPart includes or supports a skinned mesh. A skinned mesh allows for smoother deformation of the mesh, enabling complex animations such as facial expressions, bending limbs, or other articulated movements.

Code Samples

local MeshPart = script.Parent

print(MeshPart.HasSkinnedMesh)

JointOffset

Vector3

Determines the positional offset for joints connected to the MeshPart. This property defines a Vector3 value that specifies how far the joint's attachment point is offset from its default position. This is useful for precisely aligning connected parts in a 3D environment.

Code Samples

local MeshPart = script.Parent

print(MeshPart.JointOffset)

MeshId

string

The MeshId property is content ID of the mesh asset to be displayed on the MeshPart.

Code Samples

local MeshPart = script.Parent

print(MeshPart.MeshId)

TextureId

string

The TextureId property is content ID of the texture tobe displayed on the MeshPart.

Code Samples

local MeshPart = script.Parent

print(MeshPart.TextureId)

MeshSize

Vector3

MeshSize is representing the size of the mesh displayed on the MeshPart in a 3D space.

Code Samples

local MeshPart = script.Parent

print(MeshPart.MeshSize)

MeshIdContent

Content

MeshIdContent holds content information related to the mesh ID used for display on an MeshPart instance.

Code Samples

//NotWork//

TextureIdContent

Content

TextureIdContent holds content information related to the texture Id used for display on an MeshPart instance.

Code Samples

//NotWork//

Methods

ApplyMesh

The given source meshPart overwrites the meshContent, TextureContent, and crash geometry properties of this meshPart.

Parameters

Instance InMeshPart

Return

void

Code Samples

//NotWork//

Events