0 votes

Hi, I encountered a really weird situation.

Setup:
- Lots of RigidBody2D nodes with text labels, dynamically spawned at the start of Godot runtime. No physics / collision / gravity / force
- Draggable by mouse (sets position of the dragging node directly to the mouse global position) . Viewport can be zoomed in/out.

Problem:
- The RigidBody2D nodes can be dragged around and settle its position once the mouse click has been released.
- However, when the Viewport is zoomed out all the way to reveal all nodes altogether (approx 3000 objects ), whenever a RigidBody2D is dragged and released, it will "flick" back to its original position.

I'm using physicsprocess and have double checked that no other places are updating each node's positions or storing them.
This seems to me that Godot is somehow caching the objects when there are too many?? Can anyone confirm this or have encountered a similar situation?

P.S. This cannot be replicated when I use a small amount of RigidBody2D nodes, so I suspect it might has something to do with how Godot handles large amount of objects.

Godot version 3.3.1
in Engine by (24 points)

Which graphics card model and rendering backend are you using? Can you reproduce this after disabling batching in the Project Settings?

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.