DelAllJoint

Constructor:

DelAllJoint()

Description

This function deletes all physical constraints on the object.

Examples

Create several parts. Create two constraints onto the specified part, and then delete all constraints on the part.

local p1 = RWObject.Create("Part") -- create part1
local p2 = RWObject.Create("Part") -- create part2
local p3 = RWObject.Create("Part") -- create part3
p1.Position = Vector3.New(0,10,0) -- assign a vector to the part1 position
p2.Position = Vector3.New(0,15,0) -- assign a vector to the part2 position
p3.Position = Vector3.New(0,20,0) -- assign a vector to the part3 position
p1:CreateJoint(p2,JOINT_TYPE.SplitJoint) -- constrain part1 and part2 in the form of SplitJoint
p1:CreateJoint(p3,JOINT_TYPE.SplitJoint) -- constrain part1 and part3 in the form of SplitJoint
wait(1) -- wait 1
p1:DelAllJoint() -- release all the parts in the constraints with part1