e2 docs custom constraintcore - wiremod/wire GitHub Wiki
Custom/constraintcore
State)
enableConstraintUndo((1 ops)
Ent1,
V1,
Ent2,
V2)
axis(Creates an axis constraint between two entities at vectors local to each entity (30 ops)
Ent1,
V1,
Ent2,
V2,
Friction)
axis(Creates an axis constraint between two entities at vectors local to each entity with friction (30 ops)
Ent1,
V1,
Ent2,
V2,
Friction,
Localaxis)
axis(Creates an axis constraint between two entities at vectors local to each entity with friction and local rotation axis (30 ops)
Ent1,
V,
Ent2)
ballsocket((30 ops)
Ent1,
V,
Ent2,
Friction)
ballsocket((30 ops)
Ent1,
V,
Ent2,
Mins,
Maxs,
Frictions)
ballsocket(Creates an AdvBallsocket constraint between two entities at a vector local to ent1, using the specified mins, maxs, and frictions (30 ops)
Ent1,
V,
Ent2,
Mins,
Maxs,
Frictions,
Rotateonly)
ballsocket(Creates an AdvBallsocket constraint between two entities at a vector local to ent1, using the specified mins, maxs, frictions, rotateonly (30 ops)
Ent1,
V,
Ent2)
weldAng((30 ops)
Index,
Ent1,
V1,
Ent2,
V2,
Width)
winch((30 ops)
Index,
Ent1,
V1,
Ent2,
V2,
Width)
hydraulic(Creates a hydraulic constraint with a referenceid, between two entities, at vectors local to each (30 ops)
Index,
Ent1,
V1,
Ent2,
V2,
Constant,
Damping,
Mat,
Width,
Stretch)
hydraulic(Creates a hydraulic constraint with a referenceid, between two entities, at vectors local to each, with constant, damping, and stretch only (30 ops)
Index,
Ent1,
V1,
Ent2,
V2,
Constant,
Damping,
Rdamping,
Mat,
Width,
Stretch)
hydraulic(Creates a hydraulic constraint with a referenceid, between two entities, at vectors local to each, with constant, damping, relative damping and stretch only (30 ops)
Index,
Ent1,
V1,
Ent2,
V2)
rope(Creates a rope constraint with a referenceid, between two entities, at vectors local to each (30 ops)
Index,
Ent1,
V1,
Ent2,
V2,
Addlength,
Width,
Mat)
rope(Creates a rope constraint with a referenceid, between two entities, at vectors local to each with add length, width, and material (30 ops)
Index,
Ent1,
V1,
Ent2,
V2,
Addlength,
Width,
Mat,
Rigid)
rope(Creates a rope constraint with a referenceid, between two entities, at vectors local to each with add length, width, material, and rigidity (30 ops)
:setLength(
Index,
Length)
Sets the length of a winch/hydraulic/rope stored in this entity at a referenceid (5 ops)
:setConstant(
Index,
Constant)
(5 ops)
:setConstant(
Index,
Constant,
Damping)
(5 ops)
:setDamping(
Index,
Damping)
(5 ops)
Ent1,
V1,
Ent2,
V2)
slider((30 ops)
Ent1,
V1,
Ent2,
V2,
Width)
slider((30 ops)
Ent1,
Ent2)
noCollide((30 ops)
Ent,
State)
noCollideAll((30 ops)
Ent1,
Ent2)
weld((30 ops)
:constraintBreak()
Breaks all constraints of all types on an entity (5 ops)
:constraintBreak(
Ent2)
Breaks all constraints between two entities (5 ops)
:constraintBreak(
Type)
Breaks all constraints of a type (weld, axis, nocollide, ballsocket) on an entity (5 ops)
:constraintBreak(
Type,
Ent2)
Breaks a constraint of a type (weld, axis, nocollide, ballsocket) between two entities (5 ops)