print("LuauDT")
What is LuauDT
----------------------------
LuauDT is a module built specifically to create 2D and 3D Delaunay Triangulation using a port of LuaRocks - Delaunay.
What are some uses of LuauDT
-----------------------------
With this module, you can create anything that would Delaunay Triangulation.
(e.g. Destruction Engine, Glass Shattering)
How do you download LuauDT
-------------------------------
You can download LuauDT at the GitHub page. (CLICK THE BLUE)
How to use
--------------------------------
3D:
To start, simply create a new script
Now, import the module downloaded from GitHub into ReplicatedStorage
Open your new script, and use the require()
function to import all the function into your script
local LuauDT = require(game.ReplicatedStorage.LuauDT)
Now specify your part using either Triangulate3D or Triangulate3D_AutoTriangles
Triangulate3D (part, number of triangles, anchored, velocity)
local LuauDT = require(game.ReplicatedStorage.LuauDT)
local Delaunay = Luau.Triangulate3D(YourPart, 20, false, Vector3.new(0,0,100))
Triangulate3D_AutoTriangles (part)
local LuauDT = require(game.ReplicatedStorage.LuauDT)
local Delaunay = Luau.Triangulate3D(YourPart)
DTFX_GlassShattering (part, velocity)
Velocity needs to be a Vector3 value
local LuauDT = require(game.ReplicatedStorage.LuauDT)
local Delaunay = Luau.Triangulate3D(YourPart, CustomVelocity)
2D TUTORIAL WILL BE ADDED WHEN THE 2D FUNCTION IS FINISHED!