The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates. | Twitter

0 votes

I have a perfectly aligned sprite and CollisionArea2D making a moving platform in Godot. Even so, a RigidBody2D sitting on top of the platform seems to sink into the kinematic body.

As you can see, the ball has penetrated inside the block. The ball is a RigidBody2D with default properties and gravity. The red block is a kinematic body that moves vertically.

Here is the kinematic body:

extends KinematicBody2D

var speed=100

func _physics_process(delta):

If I set slow speed low, like below 50, it doesn't penetrate. How can I remove the penetration at higher speeds?

in Engine by (16 points)

1 Answer

0 votes

The problem is likely created by the collision box you're using. Make sure both of them work fine. Also, try to avoid circles with other polygons for a while. They don't play nice.

by (184 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.