High-performance, physically accurate rope and chain simulation for Unity. Powered by the Jobs System and Burst Compiler, Tensio delivers stable XPBD physics and procedural rendering.TENSIO: High-Performance DOTS Rope & Chain PhysicsTensio is a cutting-edge rope and chain simulation framework designed for developers who need more than just a visual line renderer. Whether you are building a grappling hook mechanic, complex physics puzzles, or highly reactive environments, Tensio provides the industrial-grade stability required for gameplay-critical physics.Built entirely on the Extended Position Based Dynamics (XPBD) method and fully leveraging Unity's Data-Oriented Technology Stack (DOTS), Tensio simulates elasticity, stiffness, mass, and aerodynamics across hundreds of ropes simultaneously with virtually zero CPU overhead.KEY FEATURESAdvanced XPBD Physics SolverIsometric Bending Constraints: Ropes resist unnatural folding and buckling, maintaining realistic 'U' shapes even under high compression.Fictitious Mass Scaling: Create infinitely stable heavy chains. Attach massive Rigidbody weights to the bottom of a chain without artificially stretching the top segments.Coulomb Friction & Restitution: True physical friction based on penetration depth. Ropes slide naturally across surfaces but physically "bite" and hold tight when pulled over sharp edges.Two-Way Coupling: Real physical interaction; ropes apply forces to Rigidbodies, and Rigidbodies dynamically pull on ropes.Zero-Pop Initialization: Ropes pre-simulate in the editor using actual gravity and exact zero-velocity damping. They wake up perfectly settled on the very first frame with absolutely zero start-up jitters.Intuitive Editor & WorkflowUnity Splines Integration: Rapidly design and route cables across your scenes using Unity’s official Splines package.1-Click Static Mesh Baking: Instantly freeze a simulated rope at its perfect resting position and bake it into a highly optimized Static Mesh asset. Perfect for zero-cost environment dressing (power lines, vines, etc.).Teleportation Protection: Move pinned anchors freely via script or Scene View without triggering explosive physics "whip" effects.Powerful Runtime APISmart Splitting: Slice ropes at any point in real-time using splitAtWorldPosition(worldPos).Dynamic Forces: Easily apply physical impacts using AddExplosionForce or push specific particles via code.Winching & Pinning: Smoothly reel ropes in or out using the ChangeLength() helper, and dynamically drop or attach weights mid-gameplay.Procedural Rendering & CollisionsVisual Stress: Responsive procedural tube meshes physically thin out and change color as tension increases. Specialized chain link rendering is also included.Self & Inter-Rope Collision: Ropes will not pass through themselves, and multiple ropes can tangle and interact complexly.Aerodynamics: Built-in wind and turbulence simulation with realistic air drag.Immersive 3D Spatial AudioDynamic Tension SFX: Procedural creaking and snapping sounds modulate pitch and volume based on real-time stress. Hear the rope strain before it breaks!3D Spatial Tracking: Audio sources dynamically slide along the length of massive cables to stay closest to the player's AudioListener.Impact Pooling & Mixer Routing: Multiple impact sounds overlap naturally without cutting off, all fully routable to your Unity Audio Mixer.Third-Party Notice: This asset uses various audio and texture files under the CC0 1.0 Universal License; see the Third-Party Notices.txt file in the package for details.Architecture: Pure C# implementation using Unity.Collections, Unity.Jobs, and Unity.Burst.Solver Type: XPBD (Extended Position Based Dynamics) with constraint regularization.Performance: Fully multi-threaded simulation step. Zero-garbage collection during runtime (uses NativeArray and persistent allocators).Supports: Standard, URP, and HDRP (via standard Material support).Rendering:Procedural Mesh generation on the GPU/CPU boundary using Burst.Dependencies: Requires Burst and Mathematics packages (installed via Package Manager).Compatibility: Compatible with Unity 2021.3 LTS and newer.Platforms: Supports PC, Mac, Linux, Consoles, and High-End Mobile (iOS/Android) due to Burst optimization.Included: Full source code, 5 demo scenes (Grappling Hook, Bridge, Stress Test, Cutting, Winch), and PDF documentation.AI tools were used as a coding assistant throughout the development process. Specifically, AI was used to assist in implementing the core physics algorithms, drafting initial logic for the rope simulation, refactoring C# scripts. All AI-generated code has been fully reviewed, manually refined, debugged, and tested to ensure stability, accuracy, and performance.




