how to make physics-based conveyor belt with Rapier-2d or how to fix Godot physics-2d behaving weirdly when there are alot of objects

Godot Version

4.4.1_stable_mono_win64

Explaining The Problem

sorry if i missed something this is my first topic

so, i am making a physics based 2d factory like of game, and i expect a lot of rigid bodies to be in the game scene

Godot 2d physics is very good but it behaves weirdly when there is a lot of shapes near each other

Rapier 2d physics works well when there are a lot of shapes near each other but it doesn’t seem to support conveyors

what i mean by conveyors is a static body 2d with constant linear velocity

here is a video because it is hard to explain in words

extra information:
run on separate thread is enabled on both cases but there is no difference when it is disabled

the conveyer is the gradient image (static body 2d)


shapes are rigid bodies, but collision and polygon data are set during runtime

also, i didn’t touch any of the physics settings beside the physics engine and run on separate thread

I am trying to achieve one of the following

1- how to make Godot physics more consistent on large physics objects
Or
2- how to make physics-based conveyors in Rapier2D

Are you using Rapier Physics Bodies ?

Maybe this can solve your problem :