- Home /
Player pass through a cube only on its right side
I don't understand why, but I got this weird problem, hours and hours trying to fix it but I can't by myself.
Player pass through the rock (That really is a cube) but only from its right side.
Both objects (Player and Rock) have Collision Detection: Continuous and Freeze Rotation X, Y, Z.
but the problem Still happens though, very weird.
this is the video wich I will show you what really happens: link text
I hope you can help me, by the way my broken english is becuase english is not my first lenguage I am from Spain :P
Gretings!,
Answer by _jonathan_ · Jul 28, 2018 at 04:02 AM
If its a 2D game maybe you should consider using BoxCollider2D instead of the 3D Box Collider, also should use Rigidbody2D instead as well.
Hi! this is a 3D game with 2D graphcis, I mean it's a 3D project, so I used Boxcollider (3D) and Rigidbody(3D).
Then first of all I would recommend $$anonymous$$aking your colliders and rigidbody 2d unless you ever expect them to interact with a 3d object, it makes things more complicated and wastes processing power. And you you don't plan to ever have a 3d object in you game, I would recommend switching you entire game over to 2d.
Hi again! I just solved the problem! by changing the $$anonymous$$esh from Cube to Sphere.
It looks like it was a $$anonymous$$esh problem becuase the Rock being a Sphere rolls better when the player drags on it ins$$anonymous$$d of beaing a Cube.
Thank you so much anyways!
Gretings! (;
Your answer
Follow this Question
Related Questions
Distribute terrain in zones 3 Answers
Multiple Cars not working 1 Answer
Translate.transform problems (collision/Rigibody) 0 Answers
Hi! How can I use the OnTriggerEnter2D function for the game objects that I instantiate? 3 Answers
How to make an object move around a collider (watch video) 0 Answers