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 is a cutting-edge rope simulation framework designed for developers who need more than just a visual line renderer. Whether you are building a physics puzzle, a swinging mechanic, or a realistic environment, Tensio provides the stability and performance required for gameplay-critical physics.Built on the Extended Position Based Dynamics (XPBD) method, Tensio simulates elasticity, stiffness, and mass with high precision. It fully leverages Unity's Data-Oriented Technology Stack (DOTS) to handle hundreds of particles across multiple ropes with minimal CPU overhead.Key FeaturesXPBD Physics Solver: Stable, jitter-free simulation that supports both stretchy elastic ropes and rigid, non-stretching chains using sub-stepping.Two-Way Coupling: Real physics interaction; ropes can pull Rigidbodies, and Rigidbodies can pull ropes.Environment Collision: High-performance SphereCast collision for continuous detection against static and dynamic world geometry.Advanced Collision:Self-Collision: Ropes won't pass through themselves.Inter-Rope Collision: Multiple ropes can tangle and interact complexly.Aerodynamics: Built-in wind and turbulence simulation with air drag.Dynamic Interaction:Runtime Cutting: Slice ropes at any point in real-time.Grabbing & Pinning: Attach particles to objects or move them via script.Procedural Rendering: Smooth, tube-based mesh generation with support for textures, normal maps, and UV tiling. Includes Visual Stress (ropes thin out/change color under tension) and specialized Chain Rendering.Editor Tools: Intuitive Bezier curve editing for defining initial rope shapes directly in the scene view.Immersive Procedural Audio:Tension-Based SFX: Dynamic creaking and snapping sounds that automatically modulate pitch and volume based on real-time physical stress. Hear the rope strain before it breaks!Velocity Whoosh: Aerodynamic wind sounds driven by the speed of individual rope particles during swings.Spatial Accuracy: Sound sources follow the exact point of highest tension or impact along the curve for fully 3D spatialized audio.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.




