briansemrau / godot_box2d

A C++ module that integrates the Box2D library with the Godot game engine by providing nodes for standard Box2D objects.
MIT License
44 stars 4 forks source link

Static body linear_velocity as surface tangent speed #54

Open briansemrau opened 3 years ago

briansemrau commented 3 years ago

In Godot you can set a linear velocity on static bodies so that they behave like conveyor belts.

This is probably the best way to implement it: http://www.iforce2d.net/b2dtut/conveyor-belts

jordo commented 3 years ago

heh, I'm confused about this

jordo commented 3 years ago

linear velocity on static bodies?

briansemrau commented 3 years ago

Yeah, it doesn't move it but it changes collision behavior: https://docs.godotengine.org/en/latest/classes/class_staticbody2d.html#class-staticbody2d-property-constant-linear-velocity

jordo commented 3 years ago

Oh weird, ya, I guess godot doesn't expose any solver interaction, because this is trivial to do in pre-solve.