This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
0 votes

Hi all,

I have a breakout game. Works just fine in all instances until I rotate/scale a brick.

I'm trying to add an interesting scene with an animated set of bricks. The hierarchy is:

Node2d
-- texture button
-- StaticBody2D
----CollisionShape

So in normal game situations, the ball (which is a KinematicBody2D) bounces at correct angles etc.

Once I rotate / scale the brick though, the ball hits the brick and hugs the edge of it, slowly slowly sliding along it until it's freed.

Can anyone offer any advice as to why?

in Engine by (838 points)

Have you tried running the game with visible collision shapes? It might reveal something about what the colliders are doing. You can enable them in under the little "beacon" icon with the play, pause and stop buttons. Will be listed as "Visible Collision Shapes".

Based on the docs I'm not entirely sure whether it's safe to move a StaticBody2D outside of animations, so you might need to use a different physics body for the brick.

Please log in or register to answer this question.

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.