laftworld3141 / box2d

Automatically exported from code.google.com/p/box2d
0 stars 0 forks source link

Box2D Wrapper enhancement #299

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I have libGDX 0.9.7 and I can't find the method 
com.badlogic.gdx.physics.box2d.Contact#setTangentSpeed(float), which should be 
available with newer Box2D versions.

A "proof" that it exists is this blog post:
http://www.iforce2d.net/b2dtut/conveyor-belts

He uses the method at line 25 in the 4th code block.

Here it is in the box2D source:
http://code.google.com/p/box2d/source/browse/trunk/Box2D/Box2D/Dynamics/Contacts
/b2Contact.h#139

In the blog post link you can see for what it can be useful.
For example making a wheel of a car have more grip than another wheel. You do 
this by "faking" the grip and simply making the wheel push the car more than 
usual, simply by changing the tangent speed in the Contact Listener's 
preSolve(...) method.

Original issue reported on code.google.com by matheus....@gmail.com on 29 Dec 2012 at 9:13

GoogleCodeExporter commented 8 years ago
Isn't this a question for the libGDX mailing list/forums? :)

Original comment by iforc...@gmail.com on 16 Jan 2013 at 3:11

GoogleCodeExporter commented 8 years ago
Yup, not a Box2D issue.

Original comment by erinca...@gmail.com on 27 Oct 2013 at 7:03

GoogleCodeExporter commented 8 years ago
Yes, sorry, i don't know how I could mix this up. This wasn't intended. :)

Original comment by matheus....@gmail.com on 27 Oct 2013 at 7:10