- Home /
How to make tiles or gameobject solid?
I was trying to develop a game in which player jumps a ball on different tiles to gain points. Now the problem is: Ball can pass from the bottom of the tile instead of striking to it. When a ball is landed on a tile and there is a tile directly above the tile your ball is currently on, and if you jump then the ball will pass through the upper tile. I just want to make to the ball hit the upper tile instead of passing through it.
Answer by CallumWB · Apr 28, 2017 at 12:38 PM
It sounds like you need to have a mesh Collider to it. this can be done by clicking on the object, click on "Add component" in the inspector of the object then add physics and look for mesh collider or box collider both should work fine.
Hope it helps I may of read the problem wrong but this is what I think should help and fix the issue you are having.
I have added mesh collider to both of them and didn't worked. Ball is still passing through the bottom but landing on top.
Hey, don't suppose you have an Image you could post of this it is really odd that the ball is passing through the collider. the only thing I can think of this being is that the ball is level with the top collider so maybe if you raise the ball a bit but without an image its hard to say whats wrong.
Did you make sure that the property "Is Trigger" is unchecked in your collider?
Answer by _Keagan · Apr 28, 2017 at 11:17 AM
Do You Want the ball to pass through the bottom of the tile yet land on the top that same tile? Just use an edge collider or handle collisions from scipts? @AkshayBisht
Your answer
Follow this Question
Related Questions
Tree collision 1 Answer
problem with collider 1 Answer
How to create a solid object in the canvas? 0 Answers
How to Create an Immovable Object? 1 Answer
How can i make a solid object, so that my player doesnt go thourgh it 1 Answer