Distance Joint

Creates a DistanceJoint between two bodies.

This joint constrains the distance between two points on two bodies to be constant. These two points are specified in world coordinates and the two bodies are assumed to be in place when this joint is created. The first anchor point is connected to the first body and the second to the second body, and the points define the length of the distance joint. 

https://love2d.org/wiki/love.physics.newDistanceJoint


Below are links to a demo and use case

The following Keys make some changes:
Cursor keys
W,S,A,D keys
I,K,J,L,O,P keys


Have fun!



Love2D Distance Joint Demo




http://www.mediafire.com/file/rhdbtnzxy3027uw/Box2DDistanceJointDemo.zip/file





Love2D Distance Joint Use Case



http://www.mediafire.com/file/gdcznqbjozn4grl/Box2DDistanceJointUseCase.zip/file



Credit / Reference

https://www.youtube.com/watch?v=4LYvltd07hk


Comments

Popular posts from this blog

Friction Joint