MakeSplitJoint

Constructor:

MakeSplitJoint()

Description

Performs split joint operations to all part objects under Model.

Examples

Create a model, a mesh part and a part. Respectively set the mesh part and the part as the children of the model, and perform split joint operation.

local model = RWObject.Create("Model") -- create a model
local part = RWObject.Create("Part") -- create a part
part.Position = Vector3.New(0,1,6) -- assign a vector to the part position
local meshpart = RWObject.Create("MeshPart") -- create a mesh part
meshpart.Position = Vector3.New(0,1,9) -- assign a vector to the mesh part position
part.Parent = model -- set the parent of the part as the model
meshpart.Parent = model -- set the parent of the mesh part as the model
model:MakeSplitJoint() -- perform split joint operation to all part objects under Model