I’m trying to make a triangle spike using editable mesh, but when I apply mesh to meshpart, it just renders like cube.
local editableMesh = assetService:CreateEditableMesh()
local v1 = editableMesh:AddVertex(Vector3.new(0, 0, -1))
local v2 = editableMesh:AddVertex(Vector3.new(-1, 0, 1))
local v3 = editableMesh:AddVertex(Vector3.new(1, 0, 1))
local v4 = editableMesh:AddVertex(Vector3.new(0, 1, 0))
editableMesh:AddTriangle(v1, v2, v3)
editableMesh:AddTriangle(v1, v2, v4)
editableMesh:AddTriangle(v2, v3, v4)
editableMesh:AddTriangle(v3, v1, v4)
local testMesh = assetService:CreateMeshPartAsync(Content.fromObject(editableMesh))
local meshPart = workspace.MeshPart
meshPart:ApplyMesh(testMesh)
It’s kinda weird since collision is working correctly.
How can I fix this?
https://gyazo.com/9c097826afe551d1cef02ab816eebebf