Sunday, January 26, 2020

unity - Pushing an object on other colliders makes the pusher object go through


Screenshot of Game Scene



The Wall moves to the right and pushes the Character with it. The character travels along a bunch of Blocks with colliders attached to them.


This is the result:


Animated gif showing wall passing through character


At some point, the Character gets stuck and the Wall goes through the Character and comes out the other side.


I've tried to play around with the collision detection and other values of the rigidbodies. I tried to add a Physics material with no friction.


I am wondering what could cause this issue.


Here are the values of my GameObjects


Settings used on game objects




No comments:

Post a Comment

Simple past, Present perfect Past perfect

Can you tell me which form of the following sentences is the correct one please? Imagine two friends discussing the gym... I was in a good s...