Home Creators Posts Import Register Favorites Logout
haven't archived this post yet. have a subscription? use the importer!

Downloads

  • 2023_01_12 Kinematic Movement Player Controler v2.zip

Missing 1 full-res photo, 1 file, as this post has not yet been imported.

Content

Hey!

Here are the project files for my video about how to stop player from pushing the enemy. We will discuss how to do it using Dynamic Rigidbody and the Kinematic Rigidbody.

I hope that you will find it helpful!

-Peter 

Files

Previews only

Stop Rigidbody player from pushing enemy in Unity

In this Unity tutorial we will find a way to stop player that is moving using Rigidbody from pushing enemy 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: https://courses.sunnyvalleystudio.com/p/code-a-2d-platformer-game-in-unity-using-design-patterns Grab the Starter Project (requires Unity 2022) https://www.patreon.com/posts/74926653 Assets used: https://pixelfrog-assets.itch.io/pixel-adventure-2 𝗛𝗮𝘃𝗲 𝗮𝗻𝘆 𝗾𝘂𝗲𝘀𝘁𝗶𝗼𝗻𝘀? 𝗝𝗼𝗶𝗻 𝘁𝗵𝗲 𝗱𝗶𝘀𝗰𝗼𝗿𝗱! https://discord.gg/RQEtYHz 𝗣𝗟𝗘𝗔𝗦𝗘 support the channel: https://www.patreon.com/sunnyvalleystudio 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 #unity3d #VR #oculusquest2

Comments

No comments found for this post.