Posts

Showing posts from May, 2019

Friction Joint

Image
Create a friction joint between two bodies. A FrictionJoint applies friction to a body. https://love2d.org/wiki/love.physics.newFrictionJoint 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 keys space bar, enter keys Have fun! Love2D Friction Joint Demo http://www.mediafire.com/file/3g2k5m5c4t1ipu1/Box2DJointFrictionDemo.zip/file Love2D Friction Joint Use Case   http://www.mediafire.com/file/lcpsk4wkzh8v24c/Box2DJointFrictionUseCase.zip/file Note: the little box acts as a constant resistance to the arrow

Distance Joint

Image
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