mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-24 15:01:38 +00:00
rules
This commit is contained in:
parent
a9b4f8e83b
commit
e6efc04756
8494 changed files with 495610 additions and 0 deletions
44
.cursor/rules/roblox/reference/engine/classes/BlockMesh.yaml
Normal file
44
.cursor/rules/roblox/reference/engine/classes/BlockMesh.yaml
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
# This file is automatically generated. Please don't edit it manually.
|
||||
# To submit a bug report on the content, see
|
||||
# https://devforum.roblox.com/c/bug-reports/documentation-issues/72
|
||||
|
||||
name: BlockMesh
|
||||
type: class
|
||||
memory_category: BaseParts
|
||||
summary: |
|
||||
The BlockMesh object applies a 'brick' mesh to the `Class.BasePart` it is
|
||||
parented to. It behaves identically to a `Class.SpecialMesh` with
|
||||
`Class.SpecialMesh.MeshType` set to 'Brick'.
|
||||
description: |
|
||||
The BlockMesh object applies a 'brick' mesh to the `Class.BasePart` it is
|
||||
parented to. It behaves identically to a `Class.SpecialMesh` with
|
||||
`Class.SpecialMesh.MeshType` set to 'brick'.
|
||||
|
||||
## What does a BlockMesh do?
|
||||
|
||||
A BlockMesh gives the `Class.BasePart` it was applied to a brick shaped mesh.
|
||||
It is identical in appearance to a standard Roblox `Class.Part`.
|
||||
|
||||
The dimensions of the mesh will scale linearly in all directions with
|
||||
`Class.BasePart.Size`, this means a part containing a BlockMesh can be resized
|
||||
the same way as any other part.
|
||||
|
||||
The additional functionality a BlockMesh brings however, is the ability to set
|
||||
the `Class.DataModelMesh.Scale` and `Class.DataModelMesh.Offset` properties.
|
||||
These allow the position and dimensions of the mesh that is displayed to be
|
||||
changed without changing the `Class.BasePart.Position` or
|
||||
`Class.BasePart.Size` of the `Class.BasePart` the mesh is parented to.
|
||||
|
||||
Note as the `Class.BlockMesh` object does not include a texture the
|
||||
`Class.DataModelMesh.VertexColor` property does not do anything.
|
||||
code_samples:
|
||||
- BlockMesh-Instantiation
|
||||
inherits:
|
||||
- BevelMesh
|
||||
descendants: []
|
||||
tags: []
|
||||
deprecation_message: ''
|
||||
properties: []
|
||||
methods: []
|
||||
events: []
|
||||
callbacks: []
|
||||
Loading…
Add table
Add a link
Reference in a new issue