Repulsion Behavior — a behavior for Construct 3 that causes objects to repel each other and prevent overlap. Ideal for crowds of monsters, solid projectiles, and physics without a full physics engine.
Properties:
• Enabled — enable/disable repulsion
• Repulsion Distance — minimum distance between objects (pixels)
• Repulsion Strength — repulsion strength (0.01–10)
• Repulsion Mode — collision mode: Circle (by radius) or Rectangle (AABB)
• Static — the object repels others but does not move itself (walls, barriers)
Actions:
• Set enabled — enable/disable
• Set repulsion distance — set distance
• Set repulsion strength — set strength
• Set repulsion mode — Circle / Rectangle
• Set static — make object static
Conditions:
• Repulsion is enabled
• Repulsion is static
Expressions:
• RepulsionDistance — current distance
• RepulsionStrength — current strength
• RepulsionMode — current mode
• OverlapCount — how many objects are currently overlapping
• PushForceX / PushForceY — current push force along the axes
• IsEnabledValue / IsStaticValue — 1 or 0