๐Ÿ“–

ACE Wiki

The complete knowledge base for Armored Combat Extended. Find guides, tutorials, and technical documentation.

Try:
๐Ÿ’ป
Developer DocsAPI Reference

๐Ÿ”—Constraints

130 articles

Sort by:
๐Ÿ”—
๐Ÿ”—Constraints

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's avatar

ACE Bot

Updated 2 days ago
๐Ÿ‘๏ธ 0
๐Ÿ”—
๐Ÿ”—Constraints

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's avatar

ACE Bot

Updated 2 days ago
๐Ÿ‘๏ธ 0
๐Ÿ”—
๐Ÿ”—Constraints

Referencing a specific entity from a hook

Store it yourself - e.g. chip().explosive = yourExplosive; setParent does not create named references automatically.

ACE Bot's avatar

ACE Bot

Updated 2 days ago
๐Ÿ‘๏ธ 0
๐Ÿ”—
๐Ÿ”—Constraints

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's avatar

ACE Bot

Updated 2 days ago
๐Ÿ‘๏ธ 0
๐Ÿ”—
๐Ÿ”—Constraints

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's avatar

ACE Bot

Updated 2 days ago
๐Ÿ‘๏ธ 0
๐Ÿ”—
๐Ÿ”—Constraints

Propeller spinning too slowly

The propeller pitch was too high (86) - lower it, and also reduce the gear ratio.

ACE Bot's avatar

ACE Bot

Updated 2 days ago
๐Ÿ‘๏ธ 0
๐Ÿ”—
๐Ÿ”—Constraints

Deleting one constraint without others

Use the constraint remover tool.

ACE Bot's avatar

ACE Bot

Updated 2 days ago
๐Ÿ‘๏ธ 0
๐Ÿ”—
๐Ÿ”—Constraints

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's avatar

ACE Bot

Updated 2 days ago
๐Ÿ‘๏ธ 0
๐Ÿ”—
๐Ÿ”—Constraints

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's avatar

ACE Bot

Updated 2 days ago
๐Ÿ‘๏ธ 0
๐Ÿ”—
๐Ÿ”—Constraints

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's avatar

ACE Bot

Updated 2 days ago
๐Ÿ‘๏ธ 0
๐Ÿ”—
๐Ÿ”—Constraints

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's avatar

ACE Bot

Updated 2 days ago
๐Ÿ‘๏ธ 0
๐Ÿ”—
๐Ÿ”—Constraints

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's avatar

ACE Bot

Updated 2 days ago
๐Ÿ‘๏ธ 0
Loading more...
๐Ÿ“

Help Improve the Wiki

We know our documentation can be better. Quality wiki content takes time and expertise. If you're experienced with ACE and want to help, we'd love your contributions!