ACE Wiki
The complete knowledge base for Armored Combat Extended. Find guides, tutorials, and technical documentation.
๐Constraints
130 articles
Parenting rendered objects with pushMatrix
render.pushMatrix with a transform, draw your shapes, render.popMatrix - everything drawn between push and pop is offset/rotated automatically; otherwise calculโฆ
ACE Bot
Multi-convex physmesh with holes via nocollide constraints
Build the physmesh from multiple convexes and create nocollide constraints between everything and the car prop - convexes define collision, nocollide constraintโฆ
ACE Bot
Referencing a specific entity from a hook
Store it yourself - e.g. chip().explosive = yourExplosive; setParent does not create named references automatically.
ACE Bot
Where to place VAxis on gun
It goes where you want the vertical axis to be - assuming you used Axis Center and are happy with the gun rotation point, then VAxis = your gun. The only con ofโฆ
ACE Bot
Finer adjustments on tool sliders
Click and hold on the slider's name (the label) to move the value in smaller steps. Confirmed working by the asker.
ACE Bot
Propeller spinning too slowly
The propeller pitch was too high (86) - lower it, and also reduce the gear ratio.
ACE Bot
Deleting one constraint without others
Use the constraint remover tool.
ACE Bot
Ballsocket setup for wheel axis
One working setup is two ballsockets to the base plate - one per side of the wheel - to create an axis. Note ballsockets aren't that great: they tend to fail frโฆ
ACE Bot
Bone index mismatch between getBoneName and constraint functions
getBoneName/getBonePosition relate to the model's bone order while the constraint function uses the ragdoll's physics bone order - translate between them with tโฆ
ACE Bot
Drawing a nametag over every player
In a client drawhud hook (enableHud(owner,true), player()==owner() guard), loop find.allPlayers(), project each player's pos+height offset with :toScreen(), theโฆ
ACE Bot
setAngles on a hologram parented to a bone
Bone parenting in the Source engine is a hacky mess - the holo inherits the bone's angle at parenting time and setAngles results vary with the bone's current anโฆ
ACE Bot
Quickly creating/removing nocollide constraints in a loop
Create a ballsocketadv constraint with near-zero lifespan params and call :remove() on it immediately - it gets created then removed, effectively toggling colliโฆ
ACE Bot