Hi,
My GRAVITY constant is 10, and it is added every frame calling physicsprocess(Delta) like so: motion.y += GRAVITY
. In the end of the script I move the player something like this (I'm not at home with my laptop, so I don't have the exact code): set_linear_velocity(motion)
.
Both RigidBodies (Player & Crate) are in the Rigid Mode.
No, I don't have custom physics config options.
I'm not at home with my laptop. I'll put a pastebin link in my post later today.
I'm not at home with my laptop. I'll put a pastebin link in my post later today.
No. The Crate's script only has that Gravity line. The same one as the Player, but with GRAVITY
as an exported variable.
No. The crate (weirdly) doesn't fall through the floor. That's something that made me think...
There are no "seperate" StaticBody2D's. I'm using a tilemap. Each tile defined in the Tileset's scene has this structure:
| Sprite
+--- StaticBody2D
|
+--- CollisionShape2D -> Rectangle
I hope that this information helps!