Part

Part : BasePart

Overview

Part is an instance that inherited the BasePart and may represent a primitive shape.

Description

Part is a Lua-based component in Overdare Studio, extending from the BasePart class to represent and manage game elements as parts. It provides customization options through Lua scripting, enabling developers to define properties such as shape, color, and mesh. The Shape property allows users to select various primitive shapes for these parts .

Properties

Shape

Enum.PartType

Shape property in the Part class defines the type of shape an object has, allowing for different geometric forms to be assigned through an enumeration (Ball, Block, Cylinder).

Code Samples

Methods

ApplyImpulse

The ApplyImpulse method applies an impulse to a physics object, causing it to move or rotate based on the force and direction of the impulse.

Parameters

Vector3 impulse

Return

void

Code Samples

Events