- Home /
The question is answered, right answer was accepted
labyrinth like game
Hello guys.
First of all, happy new year !
I'm trying to make a "labyrinth like" game for android mobile phones (first development for this kind of support). I'm using the "roll a ball" controller from the mobile assets.
I have some issues with the controller, it does not easily fall into holes (that are of course a little bigger than the ball).
Even if I reduce the size of the ball it does not fall easily...
I tried to play with gravity (-30 instead of -9.81, because I find that the ball does not fall like in reality (this is a good question, why ?), it is better but does not behave like in real life.
I tried to find the parameter handling the max speed of falling and I didn't find it.
Does someone has an idea ? Thanks in advance.
Did you check to make sure the collider is reducing in size when you scale the sphere down? Another thing you could do if all else fails you could make a trigger that adds added downward force... Not sure if those suggestions help, but good luck all the same!
@Panik.Studios : I'll check the size of the collider if it fits the ball size, I'm not sure ... EDIT : the collider fits the ball size, there is no problem with that.
@sdgd : the mass is 1. But there is no reason the mass should impact the speed of the fall.
EDIT : I think the problem might be related to the unnatural physics : it drops slowly (and I don't want to add some gravity, -9.81 is the correct value). I don't understand what parameter I'm missing here... I tried to play with every parameter from the ball and the physics manager
Ouch, it hurts ... :)
It was only a scale problem, thanks. Convert your comment as an answer so I can accept it.
Answer by OP_toss · Jan 07, 2014 at 12:16 AM
The physics are scientific algorithms. They're fine. The problem is your scene scale. Your sphere is probably much bigger than it should be, thus it seems to move and drop slowly, just as a giant ball would. Try decreasing the size of the ball to be realistic, or just play with it til it moves how you want. Scale's your problem I think.
As far as falling in the hole, even in real labrinth games, the hole is quite a bit bigger than the ball, so you can either make a slight slope around it to help the player get it there, or increase the hole size to something easier. Not many other ways around that.
Hope this helps!