- Home /
Ball jumping when moving over 2 cubes
Hi, i have created a ball using rigibody, all works great. However if i have two platforms i.e cubes, position them together to make a bigger platform, even through the tops are set the same position and there are no gaps between the platform, the ball jumps a little when rolling over the connected edges.
Any ideas as to why this is happening?
Can you show your script? And can the ball jump normally when it's not on the connecting edge?
And are both cubes same material? And yes please post code, higher chance that someone will test it and give you a solution then.
Answer by samo8076 · Jul 06, 2012 at 08:56 AM
can anybody help at all, driving me mad lol
Please do not post something which is not related to the answer as an answer.
Answer by Jamez5000 · Jul 06, 2012 at 09:42 AM
try intersecting the objects and seeing if it the ball jumps where it intersects first. If that is the case one collider is probably higher than the other.
Answer by samo8076 · Jul 06, 2012 at 09:52 AM
Iv tried instersection and still the same problem.
How do you position the colliders?
I have set the position of the cubes to be the same.
you should be commenting posts, not creating new answers. In the inspector there is a collider section where you change the dimensions of the collider, you can't miss it..IF you don't know where this is I would consider looking up fundamental tutorials to get you on the right track.
Answer by Mideno · Nov 22, 2020 at 10:50 AM
I know this question is from several years ago, but I just fixed this problem by using a box collider on an object called "level" in my case, and inside that object I just placed all of the plataforms, also you will need to resize the collider to make it the size of the plataforms.
Basically instead of placing one collider for each plataform, when plataforms are together just place one.
Your answer
![](https://koobas.hobune.stream/wayback/20220613073734im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Ball jump on collision problem 1 Answer
Box collider didn't jump with player 1 Answer
Enemy bouncing physics 0 Answers
Physics2D Raycast stops detecting collision 0 Answers
Collisions with spherecast? 1 Answer