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:

ball.set_bounce(12)

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!

asked Jul 22, 2019 in Engine by Notorious2016 (24 points)
edited Jul 22, 2019 by Notorious2016

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 How to use this Q&A? before posting your first questions.