0 votes

Hello to everyone,

I'm using Godot 3.1.1, I'm reading everywhere that the way to add a different bounce to a RigidBody2D ball, based on the collided object, is to use the body_entered() signal of the ball.

Unfortunately in the code whatever command (old or new way) I apply, the bounce modification can be seen in action only starting on the SECOND (successive) collision with the same object. I tried:

ball.physicsmaterialoverride.bounce = 12

and also the old way:


Hoping to learn suggestions from you, I have read about some physics bugs in 3.1.1 version, maybe I'm struggling with one of them? I thank you for your help in advance!

in Engine by (24 points)
edited by

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 webmaster@godotengine.org with your username.