cuberact-library

GDExtension for Godot 4.5+

A growing collection of GDExtension components for Godot 4.5+. Check the installed version at runtime: CuberactLib.get_version()

Supported Platforms

macOS (universal) Windows (x86_64, arm64) Linux (x86_64, arm64) Web (wasm32)

Installation

Option A — Godot Asset Library
Install directly from the Godot editor's AssetLib tab.

Option B — GitHub Release
Download the latest ZIP from Releases, extract cuberact-library/ into your project's addons/ folder, reopen in Godot.

Option C — Clone the full repository

git clone https://github.com/cuberact/godot-cuberact-library.git

Links

CRope2D

2D Rope Physics Simulation

2D rope physics simulation built on Verlet integration. Supports collisions, anchoring, and a modular system for forces, rendering, line processing, and breaking.

CRope2D (Node2D)
├── data: CRopeData              — point positions, segment length
├── anchors: CRopeAnchor[]       — attach rope points to nodes
├── force_modules: CRopeForceMod[]   — gravity, wind, magnets, custom
├── line_modules: CRopeLineMod[]     — smooth, simplify, subdivide, custom
├── break_modules: CRopeBreakMod[]   — tension break, custom
└── render_modules: CRopeRenderMod[] — direct, Line2D, debug, custom

Key Features

  • Verlet integration with configurable stiffness and damping
  • Collision support (StaticBody2D, RigidBody2D, CharacterBody2D)
  • Anchor system with two-way physical interaction on RigidBody2D
  • Modular architecture — forces, line processing, breaking, and rendering are all interchangeable modules
  • Custom modules in GDScript — no C++ required
  • Debug probe for performance profiling

Built-in Modules

Force Modules

  • CRopeGravityForceMod — constant gravity
  • CRopeWindForceMod — oscillating wind
  • CRopeMagnetForceMod — attract/repel toward a node

Line Modules

  • CRopeSmoothLineMod — Laplacian smoothing
  • CRopeSimplifyLineMod — Ramer-Douglas-Peucker
  • CRopeSubdivideLineMod — Chaikin subdivision

Render Modules

  • CRopeDirectRenderMod — lightweight canvas draw
  • CRopeLine2DRenderMod — Line2D with gradient & material
  • CRopeDebugRenderMod — tension, forces, velocity overlay

Break Modules

  • CRopeTensionBreakMod — breaks when stretch exceeds threshold

API Reference

Full documentation of all properties, methods, and signals is available in the CRope2D API Reference on GitHub. The same documentation is also built into Godot's editor help system.

14 Example Scenes

Each example demonstrates specific features — stiffness & damping, gravity, magnets, simplify/subdivide, custom GDScript render modules, debug overlay, rope breaking, pendulum, collisions, playground, grappling hook, stress test, and a boulder network.

Controls
InputAction
LMB / RMBDrag physics bodies or anchors
MMB dragPan camera
MMB clickToggle boulder gravity
Mouse wheelZoom camera
RReset camera
F1Show/hide controls overlay
F2Show/hide FPS and debug probe
ESCBack to launcher

Try it in your browser

All 14 example scenes running directly in the browser via Godot's web export.

Launch Examples →

License

Free for learning, prototyping, and game jams. A paid license is required when you publish a game. See LICENSE.md for full terms.