Skip to content

u/ewall198

In this archive from Jun 2024 to Dec 2025

10
posts
5
comments
5
media
26
score
3 saved before deletion

Top posts

How to: Distance Constraint?

Any idea how to create a Distance Constraint between two points on two PhysicsBody3Ds? The physical scenario I'm trying to model is two bodies which are connected by a rope, but not at their center of mass. I looked at the different joints, but I don't think any of them will give the equivalent of a...

1 points2 comments
Open on Reddit

Top comments

One other thing that can help improve performance further is to have the Area2D only sync its transform with the parent every couple of frames. Disabling monitoring for the Area2D of enemies will help some.

Very difficult changes: You can also move the code to C++ via gdextension if you need much better performance, but that's a lot of work. You can also move the swarming behavior to separate thread(I haven't implemented this yet).

I did a similar thing in 3D and have 2000 enemies at 60fps

3 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.