Problem with colliders. Objects seem to be floating

Hi. I have an object for the player that it’s solid and has its physics turned on(with gravity). The platform object doesn’t use physics but it’s also solid. I tried trimming the images as much as possible but it didn’t work, I think it might be a problem with the size of the colliders. Is there any way to solve this? Thank you for your time.


1 Like

Hi, yes, the colliders go beyond the object. Here’s what you can do (3 variants): 1) Try to put the collider in the “Circle” and block the rotation (It will go down a little lower) 2) Turn off the solid of the object and turn off the gravity of the object through the events 3) Turn off the player’s hardness and attach it to the platform through the “Join” behavior during a touch.

We will pay attention to this problem in the future. To avoid having to make additional settings

1 Like

Hi, thank you for the help! I think option 1 will work.

1 Like

Cool, no problem))):+1:

1 Like

Setting the collider to circle didn’t quite work, the player would pass the platform. However, I managed to make it work in a different way.

I changed the image of the player to a rectangle(only matters for the collision) and used this object as the controller of the player(collision, physics, etc). I then added another object with the player image, turned physics and solid off(so it is only used for the image), and joined it to the player controller object. This allows me to set how high or low I want the player image to be(since it is separated from the collider), so I just set it to be a little bit lower and it doesn’t appear to be floating anymore.


The last thing to do is to just set the opacity of the player controller(rectangle) to zero. So now the rectangle is still floating a little bit, but it doesn’t matter since I only show the player image.

1 Like

Without the rectangle it looks like this:


Much better now!

1 Like

Yes, it’s also a wonderful decision, this very well that you could find the most suitable solution for your script.:+1::+1::+1: Ready is quite a flexible engine and you can always solve the problem different ways.

1 Like

This is one of the most useful posts on the entire forum. I can resolve issues in nearly every game i have made with this technique.

I almost think it should be in a tutorial as ‘best practices’ type info. Obviously not the only way, but it doesnt require writing code or events, works every time, and makes the resulting game look and play better by resolving a ton of little collision hangs.