Gravity Tunnels and other unique mechanics are essential for engaging gameplay. In this tutorial, you'll learn how to build key objects for a Player Controller sandbox: a gravity well that pushes players to the edges of a tunnel, a right-angle flip mechanic for walking on walls, and moving platforms that do not require re-parenting. We'll break down the mathematics and coding for each feature, ensuring smooth and responsive interaction, no matter what controller you are using!
Don't forget - turn 'Use Gravity' OFF!
More about Vector3.Project method: https://docs.unity3d.com/6000.0/Docum...
Want to support me? 😀
Buy me a coffee! https://ko-fi.com/adammyhre
🔔 Subscribe for more Unity Tutorials / @git-amend
Discord: / discord
#unity3d #gamedev #indiedev
▬ Contents of this video ▬▬▬▬▬▬▬▬▬▬
0:00 Right Angle Flip
3:20 Gravity Well
7:45 Moving Platforms
15:53 Extra
Source code: https://gist.github.com/adammyhre/7b4...
More Useful Code:
https://github.com/adammyhre?tab=repo...
Unity Utility Library: https://github.com/adammyhre/Unity-Utils
Assets Shown In This Video (Affiliate Links)
Fast Script Reload FREE: https://assetstore.unity.com/packages...
Gridbox Prototype Materials FREE: https://assetstore.unity.com/packages...
Synty Prototype Pack: https://assetstore.unity.com/packages...
Component Names: https://assetstore.unity.com/packages...
Dungeon Mason Tiny Hero Duo: (FREE): https://assetstore.unity.com/packages...
Tiny Heroes: https://assetstore.unity.com/packages...
Hierarchy Icons: https://assetstore.unity.com/packages...
Better Transform: https://assetstore.unity.com/packages...
Better Mesh Filter: https://assetstore.unity.com/packages...
Kyeoms VFX: https://assetstore.unity.com/publishe...
Pure Nature 2 : Mountains: https://assetstore.unity.com/packages...
Follow me!
https://linktr.ee/gitamend