DynamicMesh

Show Deprecated

Summary

Properties

Methods

AddTriangle(vertexId0: number, vertexId1: number, vertexId2: number): number  


FindClosestVertex(toThisPoint: Vector3): number  


GetPosition(vertexId: number): Vector3  


GetTriangleVertices(triangleId: number): Tuple  


GetUV(vertexId: number): Vector2  


GetVertexColor(vertexId: number): Color3  


Raycast(origin: Vector3, direction: Vector3): Tuple  


RemoveTriangle(triangleId: number): void  


RemoveVertex(vertexId: number): void  


SetPosition(vertexId: number, p: Vector3): void  


SetUV(vertexId: number, uv: Vector2): void  


SetVertexColor(vertexId: number, color: Color3): void  


SetVertexColorAlpha(vertexId: number, alpha: number): void  


SetVertexNormal(vertexId: number, vnormal: Vector3): void  


CreateMeshPartAsync(collisionFidelity: CollisionFidelity): MeshPart  YIELDS


Events

Properties

MeshVersion

Hidden
Not Accessible Security

Methods

AddTriangle

Parameters

vertexId0: number
vertexId1: number
vertexId2: number

Returns

AddVertex

Parameters


Returns

FindClosestPointOnSurface

Parameters

point: Vector3

Returns

FindClosestVertex

Parameters

toThisPoint: Vector3

Returns

FindVerticesWithinSphere

Parameters

center: Vector3
radius: number

Returns

GetAdjacentTriangles

Parameters

triangleId: number

Returns

GetAdjacentVertices

Parameters

vertexId: number

Returns

GetPosition

Parameters

vertexId: number

Returns

GetTriangleVertices

Parameters

triangleId: number

Returns

GetTriangles


Returns

GetUV

Parameters

vertexId: number

Returns

GetVertexColor

Parameters

vertexId: number

Returns

GetVertexColorAlpha

Parameters

vertexId: number

Returns

GetVertexNormal

Parameters

vertexId: number

Returns

GetVertices


Returns

Raycast

Parameters

origin: Vector3
direction: Vector3

Returns

RemoveTriangle

void

Parameters

triangleId: number

Returns

void

RemoveVertex

void

Parameters

vertexId: number

Returns

void

SetPosition

void

Parameters

vertexId: number

Returns

void

SetUV

void

Parameters

vertexId: number

Returns

void

SetVertexColor

void

Parameters

vertexId: number
color: Color3

Returns

void

SetVertexColorAlpha

void

Parameters

vertexId: number
alpha: number

Returns

void

SetVertexNormal

void

Parameters

vertexId: number
vnormal: Vector3

Returns

void

CreateMeshPartAsync

Yields

Parameters

collisionFidelity: CollisionFidelity

Returns

Events