In this Unity tutorial we will find a way to stop Enemy that is moving using Rigidbody from pushing Player or another object in your Unity game. I will explain how to stop Dynamic Rigidbody from pushing another one and a better way to solve it which involves a use of kinematic Rigidbody. Design Patterns in Unity course: Grab the Full Project (requires Unity 2022) Assets used: 𝗛𝗮𝘃𝗲 𝗮𝗻𝘆 𝗾𝘂𝗲𝘀𝘁𝗶𝗼𝗻𝘀? 𝗝𝗼𝗶𝗻 𝘁𝗵𝗲 𝗱𝗶𝘀𝗰𝗼𝗿𝗱! 𝗣𝗟𝗘𝗔𝗦𝗘 support the channel: 00:00 Pushing Rigidbody Problem 00:30 Quick Fix vs Kinematic Rigidbody 00:53 Solution 1 Increasing Mass 01:52 Problem with this solution 02:46 Solution 2 Custom Kinematic Movement System 04:31 Movement Script 05:10 Grounded Check Kinematic Rigidbody 05:46 Cast collider in Unity 09:26 Using Tuple in Unity c# 10:53 RaycastHit2D distance 11:37 Moving Kinematic Rigidbody 13:01 Gravity with Kinematic Rigidbody #unity2d #gamedev #indiegamedev











