filbs111 / box2d-learning

0 stars 0 forks source link

worms #26

Open filbs111 opened 7 years ago

filbs111 commented 7 years ago

option for player vehicle like death worm. guess thrust should come from all segments. unsure what left/right control should affect. if tunneling #25 , possibly just affecting the rotation of the 1st segment will lead other segments to follow, if drag is set up sensibly.

filbs111 commented 7 years ago

could do movement using "conveyorbelt" skin like https://www.iforce2d.net/b2dtut/conveyor-belts no inbuilt support for this in box2dweb (2.1a), but could edit source code. alternatively could switch to using box2d.js https://github.com/kripken/box2d.js, which should be recent enough to have tangent speed feature inbuilt - would want each segment to be 2 objects though -1 for each side (unless figure of 8 object???)

to do properly though, should have compression wave.