0 votes

I'm using RigidBody2D for spaceships, and using Physics2DDirectBodyState's step variable to modify linearvelocity to move the ship. However, I need about 10 000 ships at once in my game, and about 700 of RigidBody2Ds slow my computer to a crawl. So, I decided to use node2Ds for when the ships are too far. The ships would pass through each other, but that's fine by me. However, Node2D only has _process(delta). Using it to move Node2D versions of ships, while RigidBody2Ds use step, is weird. I'm effectively using two clocks, can that introduce problems later down the line? I'm planning to add a feature where you could accelerate time using Engine.timescale, could that have problems? Thank you in advance.

Edit: actually, I should use physicsprocess(delta) instead of process(delta). Does it use the same clock as _integrateforces()?

Godot version 3.3.4
in Engine by (12 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 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.