Simplified version of "Hedge Physics" originally by LakeFeperd and Damizean
HedgePhysics is a debloated and simplified version of the "Hedge Physics" engine by LakeFeperd and Damizean. This version of the engine is constrained to 5 basic prefabs (Unity objects) and strictly only gameplay and movement scripts, which have been slightly revised to conform a bit better to Unity best practices.
The original source code of the engine was provided as-is, containing lots of left overs from seemingly previous iterations, is tied to various old and deprecated Unity plugins and features, and is tied by a lot of hard to decipher dependencies. All of this is perfectly acceptable for a free engine made in someone else's free time. However this issues made the engine hard to understand and learn from.
As they are not a lot of resources for learning Sonic-style physics in 3D, I decided to take on the task of simplifying the engine to its most bare components to make this a resource to learn and to built from.
- Character controller with different actions: Jumping, Rolling, and Hurt state
- Slightly improved state machine from the original Hedge Physics
- Four example gameplay objects: Spring, Dash Panel, Hazard, and Enemy
- A test stage and a minimal ammount of test assets
- Exactly nothing else.
Download Unity and clone the repository. This repository contains a few LFS files (the test assets). It should work with any version of Unity, as its not tied to any specific editor function or plugin/package.
- Improve the rolling state
- Add Enemy AI
- Add an animated model, and code it's animator
- Code a better state machine
This simplified engine is made with people slightly experienced in coding and Unity in mind, who are looking into understanding Sonic physics and don't need all the extra tools. These ideas are not requests, just things you can do to expand the engine for you and your needs ;-)
Extracted from SonicRetro
HedgePhysics is a open source 3D Sonic engine made in Unity made by Me with some coding help from Damizean.
You're allowed to use this for anything that you want, including commercial projects. Credit Me and Damizean if you whish.
Get Unity, Learn Unity and Open it in Unity. To make levels, Get Blender and Learn Blender.
Feel free to ask any advice on my discord server: https://discord.gg/fR2mmSn
Fore the future. I need a good 3D general character controller, and my frustration with the fact I can't find a good one lead me to this. I did take a break from working on Spark to make this, as I felt like I needed to after working on that game for months. Hopefully it will be worth it.
[1.0] [Made using unity 5.6.0f3] [Playable .exe] [Source code v1.0]