How performance heavy are Rigidbody2d nodes? How exactly do rhey work anyway?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By AnntAgonizer

I’d imagine it’d be a pretty performance costly thing to employ due to their heavy reliance on so.eqhay complex calculations like collision detections or physics, particularly when there’s more than 1 with each of them having no visibility. Though that’s assuming they check that stuff every frame like a raycast or a _physics_process or _process command. Do they do that? Or do they do something else to optimize that stuff?

:bust_in_silhouette: Reply From: Inces

You can customize collision detection of Rigid Bodies in inspector, as far as to choose number of detectable contacts per frame. Just examine all items in RigidBody inspector, there are a lot of things You can temporarily disable to optimize your physics