Easy 2D Worm - Procedural Snakes, Tentacles & Physics
Ahmed Benlakhdhar (PixeLadder)
$16.50
(no ratings)
Jump AssetStore
A highly optimized, zero-setup procedural animation system for Unity 2D. Instantly create organic snakes, tentacles, worms, and dynamic trails using pure array math instead of heavy rigidbodies.Instantly create organic, slithering creatures and dynamic trails in Unity 2D.Whether you are building a top-down snake game, adding tentacles to a boss fight, or creating dynamic player tails, Easy 2D Snake handles the complex math for you.👉 [ Click Here to Play the Live WebGL Demo ]👉 [ Click Here to Read the Online Documentation ]Unlike standard Unity 2D physics joints (which can be unstable, heavy on the CPU, and prone to "jittering") this system uses a custom, highly optimized "follow-the-leader" algorithm. It calculates hundreds of segments instantly via lightweight array math without spawning a single GameObject for the body, ensuring maximum performance and zero hierarchy clutter.🌟 KEY FEATURES• Zero Setup Required: Just drag the prefab into your scene, move the head, and the body follows automatically.• Jitter-Free Stability: No exploding physics chains. The custom math ensures body segments always follow smoothly, no matter how fast the target moves.• Highly Optimized: Does not rely on expensive Rigidbody2D components and calculates movement via pure array math with zero GameObjects spawned. Perfect for mobile.• Line Renderer Integration: Automatically drives a standard Unity Line Renderer to draw the creature's body beautifully, with native visual overlapping (head always renders on top).• Dynamic Resizing: Change physical length and quality (segment count) in real-time for seamless squash and stretch effects.• Preset System: Save and load creature configurations (Colors, Curves, Sizes) using ScriptableObjects.• Custom Shaders: Includes custom shaders for smooth, resolution-independent anti-aliased rendering.📦 WHAT'S INCLUDED• Clean, fully documented C# Source Code.• Ready-to-use pre-configured Worm Prefab.• Comprehensive Demo Scene featuring an organic wander mode, interactive UI controls, preset switching, custom shaders, and advanced dynamic shadows.• Detailed offline and online documentation.⭐⭐⭐⭐⭐ Leave a Rating!If Easy 2D Worm helps your project, please consider leaving a 5-star review!Need Support?Email is the fastest way to reach me. If you encounter any issues, please contact me before leaving a review at ahmedbenlakhdhar [at] gmail [dot] com.(Please include "[Easy 2D Worm]" in the email subject line so it doesn't get caught in spam)• Core Architecture: Uses a custom, pure array-based procedural algorithm ("follow-the-leader"). Zero GameObjects are spawned for the body, ensuring 100% stable movement without chain-snapping.• Performance: Zero GameObject instantiation and zero garbage collection at runtime. Calculates hundreds of segments via lightweight array math, making it incredibly cheap on the CPU.• Visuals: Syncs physics arrays directly to a Line Renderer. Features inverted visual rendering (head natively on top) and includes custom Shader Graphs for crisp, anti-aliased edges.• Dynamic Control: C# API supports runtime modification of physical Length and Quality for seamless squash and stretch effects.• Data Management: Includes a ScriptableObject-based Preset system to easily save, load, and swap creature configurations (curves, gradients, sizes) at runtime.• Zero Gravity: Designed for entities that move under their own power (kinematic-style tracking).• Compatibility: Works with All Render Pipelines (Built-in, URP, HDRP).• Platform Agnostic: Works flawlessly on PC, Mobile, and WebGL.• Limitations: Strictly 2D tracking (ignores Z-axis). No native body collision detection (purely visual/kinematic tracking to preserve high performance).



