0 votes

According to exmaple (URL: https://docs.godotengine.org/en/stable/tutorials/physics/using_area_2d.html), from bottom page, there is sample for "Area Override Examples" with three sets (point gravity, linear damp, reserve gravity).

I am trying to mimic "point gravity" one so that when angular velocity decrease to 0, the ball would eventually stay in center. (I downloaded the "usingarea2d.zip")

When I lay the ball into "Point gravity" one, the ball seems to bounce back and force inside circle in one direction, even if I rotate the 2dArea with this code

var angular_speed = 10

func process(delta):
rotate(angular
speed * delta)

The ball wouldn't rotate with circle.

Any idea what I need to change so the ball would rotate together with circle just like example ?

Godot version Godot Engine v3.2.3 stable mono official
in Engine by (12 points)

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.
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.