Package com.badlogic.gdx.physics.box2d
Class Box2DUtils
java.lang.Object
com.badlogic.gdx.physics.box2d.Box2DUtils
public class Box2DUtils
extends java.lang.Object
Placed in this package to have access to the protected
addr
fields.
Does NOT work on HTML5!- Since:
- 0.6.0
-
Constructor Summary
Constructors Constructor Description Box2DUtils()
-
Method Summary
Modifier and Type Method Description static long
getAddr(com.badlogic.gdx.physics.box2d.Body body)
static long
getAddr(com.badlogic.gdx.physics.box2d.Fixture fixture)
static long
getAddr(com.badlogic.gdx.physics.box2d.Joint joint)
static int
hashCode(long n)
static int
hashCode(com.badlogic.gdx.physics.box2d.Body body)
static int
hashCode(com.badlogic.gdx.physics.box2d.Fixture fixture)
static int
hashCode(com.badlogic.gdx.physics.box2d.Joint joint)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Box2DUtils
public Box2DUtils()
-
-
Method Details
-
getAddr
public static long getAddr(com.badlogic.gdx.physics.box2d.Body body)- Returns:
Body.addr
-
getAddr
public static long getAddr(com.badlogic.gdx.physics.box2d.Fixture fixture)- Returns:
Fixture.addr
-
getAddr
public static long getAddr(com.badlogic.gdx.physics.box2d.Joint joint)- Returns:
Joint.addr
-
hashCode
public static int hashCode(long n)- Returns:
- a hash code of the given long
-
hashCode
public static int hashCode(com.badlogic.gdx.physics.box2d.Body body)- Returns:
- a hash code of the given body, constructed from the body's hash code and the hash code of its
address
-
hashCode
public static int hashCode(com.badlogic.gdx.physics.box2d.Fixture fixture)- Returns:
- a hash code of the given fixture, constructed from the fixture's hash code and the hash code of its
address
-
hashCode
public static int hashCode(com.badlogic.gdx.physics.box2d.Joint joint)- Returns:
- a hash code of the given joint, constructed from the joint's hash code and the hash code of its
address
-