Hello,
I want to make an object like a basket ("U" format) that player can enter inside.
I created an object, and select "Colision shape: shape of first image".
example.jpg
But the player don't fall inside the basket, but floats above the object.
Hello,
I want to make an object like a basket ("U" format) that player can enter inside.
I created an object, and select "Colision shape: shape of first image".
example.jpg
But the player don't fall inside the basket, but floats above the object.
Maybe check fine collision in the properties box. Make sure your sprite has no excess transparent space around it. Make sure your hotspots are positioned correctly at the bottom of the sprite. Try that and see if it works.
Thanks for your help.
I've tried again... and I see that it just works when the object is "non-physical movements" (like bouncing balls, static). and players is non-physical too.
But I have a problem... gravity don't works on objects "non-physical movements" =[
I'm confused =[
Physics objects work in a way that requries the objects to be convex - that is, you can cross the object from one point to any other point without going over empty space. Take a look at this demonstration:
http://www.mathopenref.com/polygonconvex.html
Have a look in the help files for the physics objects to see how they work - I think that in cases like this, you have to split the object into multiple smaller objects and group them together (I'm not very well-versed on Box2D physics).
Thanks for explanation and idea
I've tried to create small objects and connect Them with the " Joints " it works.
if you just want a bucket you dont need Joints, joints are for when you want.. well joints,you just need to set the sides position relitive to the base if you dont want/need the sides to move.