3 Unity Tricks: Gravity Wells, Right Angle Flips, and Moving Platforms @git-amend
3 Unity Tricks: Gravity Wells, Right Angle Flips, and Moving Platforms  @git-amend
Uploaded July 2024 | Updated September 2026, 2 hours ago
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: docs.unity3d.com/6000.0/Documentation/ScriptReference/Vector3.Project.html

Want to support me? πŸ˜€
Buy me a coffee! ko-fi.com/adammyhre

πŸ”” Subscribe for more Unity Tutorials youtube.com/@git-amend

Discord: discord.gg/FDRZGQBBUC

#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:* gist.github.com/adammyhre/7b4da936affce387fbbd60e68acc34f6

More Useful Code:
github.com/adammyhre?tab=repositories
Unity Utility Library: github.com/adammyhre/Unity-Utils

Assets Shown In This Video (Affiliate Links)
Fast Script Reload FREE: assetstore.unity.com/packages/tools/utilities/fast-script-reload-239351?aid=1101lw3sv
Gridbox Prototype Materials FREE: assetstore.unity.com/packages/2d/textures-materials/gridbox-prototype-materials-129127?aid=1101lw3sv
Synty Prototype Pack: assetstore.unity.com/packages/essentials/tutorial-projects/polygon-prototype-low-poly-3d-art-by-synty-137126?aid=1101lw3sv
Component Names: assetstore.unity.com/packages/tools/utilities/component-names-212478?aid=1101lw3sv
Dungeon Mason Tiny Hero Duo: (FREE): assetstore.unity.com/packages/3d/characters/humanoids/rpg-tiny-hero-duo-pbr-polyart-225148?aid=1101lw3sv
Tiny Heroes: assetstore.unity.com/packages/3d/characters/humanoids/rpg-tiny-hero-wave-pbr-228701?aid=1101lw3sv
Hierarchy Icons: assetstore.unity.com/packages/tools/utilities/better-hierarchy-272963?aid=1101lw3sv
Better Transform: assetstore.unity.com/packages/tools/utilities/better-transform-size-notes-global-local-workspace-child-parent--276554?aid=1101lw3sv
Better Mesh Filter: assetstore.unity.com/packages/tools/utilities/better-mesh-filter-266489?aid=1101lw3sv
Kyeoms VFX: assetstore.unity.com/publishers/52756?aid=1101lw3sv
Pure Nature 2 : Mountains: assetstore.unity.com/packages/3d/environments/pure-nature-2-mountains-269088?aid=1101lw3sv


*Follow me!*
https://linktr.ee/gitamend
3 Unity Tricks: Gravity Wells, Right Angle Flips, and Moving PlatformsBuild Procedural UI with Callbacks and ManipulatorsUnity Multiplayer Just Got a Huge Upgrade – Distributed AuthorityEasy and Powerful Extension Methods | Unity C#Build a Better Finite State Machine in UnityHierarchy Hack: Add Indicator Icons for EASY DebuggingUniTask: How It Replaces Coroutines, Tasks and AwaitableCode Like a Pro: Refactoring to Patterns!Unity Assembly Definitions Explained (Architecture, Not Just Compile Times)Fix Your Unity Projects FAST with this FREE ToolHigh-Performance Animations With LitMotionBuild Your Own Dependency Injection in less than 15 Minutes |  Unity C#
git-amend |

3 Unity Tricks: Gravity Wells, Right Angle Flips, and Moving Platforms

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER