Skip to content

e2 docs custom constraintcore

Divran edited this page Aug 4, 2020 · 6 revisions

Table of Contents


Custom/constraintcore

enableConstraintUndo(Number State)

(1 ops)

axis(Entity Ent1, Vector V1, Entity Ent2)

Creates an axis constraint between two entities at vectors local to each entity (30 ops)

axis(Entity Ent1, Vector V1, Entity Ent2, Vector V2)

Creates an axis constraint between two entities at vectors local to each entity with friction (30 ops)

axis(Entity Ent1, Vector V1, Entity Ent2, Vector V2, Number Friction)

Creates an axis constraint between two entities at vectors local to each entity with friction and local rotation axis (30 ops)

ballsocket(Entity Ent1, Vector V)

(30 ops)

ballsocket(Entity Ent1, Vector V, Entity Ent2)

(30 ops)

ballsocket(Entity Ent1, Vector V, Entity Ent2, Vector Mins, Vector Maxs)

Creates an AdvBallsocket constraint between two entities at a vector local to ent1, using the specified mins, maxs, and frictions (30 ops)

ballsocket(Entity Ent1, Vector V, Entity Ent2, Vector Mins, Vector Maxs, Vector Frictions)

Creates an AdvBallsocket constraint between two entities at a vector local to ent1, using the specified mins, maxs, frictions, rotateonly (30 ops)

weldAng(Entity Ent1, Vector V)

(30 ops)

winch(Number Index, Entity Ent1, Vector V1, Entity Ent2, Vector V2)

(30 ops)

hydraulic(Number Index, Entity Ent1, Vector V1, Entity Ent2, Vector V2)

Creates a hydraulic constraint with a referenceid, between two entities, at vectors local to each (30 ops)

hydraulic(Number Index, Entity Ent1, Vector V1, Entity Ent2, Vector V2, Number Constant, Number Damping, String Mat, Number Width)

Creates a hydraulic constraint with a referenceid, between two entities, at vectors local to each, with constant, damping, and stretch only (30 ops)

hydraulic(Number Index, Entity Ent1, Vector V1, Entity Ent2, Vector V2, Number Constant, Number Damping, Number Rdamping, String Mat, Number Width)

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)

rope(Number Index, Entity Ent1, Vector V1, Entity Ent2)

Creates a rope constraint with a referenceid, between two entities, at vectors local to each (30 ops)

rope(Number Index, Entity Ent1, Vector V1, Entity Ent2, Vector V2, Number Addlength, Number Width)

Creates a rope constraint with a referenceid, between two entities, at vectors local to each with add length, width, and material (30 ops)

rope(Number Index, Entity Ent1, Vector V1, Entity Ent2, Vector V2, Number Addlength, Number Width, String Mat)

Creates a rope constraint with a referenceid, between two entities, at vectors local to each with add length, width, material, and rigidity (30 ops)

Entity:setLength(Number Index)

Sets the length of a winch/hydraulic/rope stored in this entity at a referenceid (5 ops)

Entity:setConstant(Number Index)

(5 ops)

Entity:setConstant(Number Index, Number Constant)

(5 ops)

Entity:setDamping(Number Index)

(5 ops)

slider(Entity Ent1, Vector V1, Entity Ent2)

(30 ops)

slider(Entity Ent1, Vector V1, Entity Ent2, Vector V2)

(30 ops)

noCollide(Entity Ent1)

(30 ops)

noCollideAll(Entity Ent)

(30 ops)

weld(Entity Ent1)

(30 ops)

Entity:constraintBreak()

Breaks all constraints of all types on an entity (5 ops)

Entity:constraintBreak(Entity Ent2)

Breaks all constraints between two entities (5 ops)

Entity:constraintBreak(String Type)

Breaks all constraints of a type (weld, axis, nocollide, ballsocket) on an entity (5 ops)

Entity:constraintBreak(String Type)

Breaks a constraint of a type (weld, axis, nocollide, ballsocket) between two entities (5 ops)

Expression 2 ⚙️

Getting Started 🕊

Guides (In learning order) 🎓

Tools 🛠️

Click To Expand

Advanced

Beacon 💡

Control 🎛️

Data 💿

Detection 👀

Display 💻

Render 🖌

I/O 🔌

Physics 🚀

Utilities 🛠️

RFID 💳

Wireless 🛜

Gates 🚥

Click To Expand

TBD

Extras 🔭

Clone this wiki locally