APIdia Launch Partner
Top Description Constructors Methods
com.badlogic.gdx.physics.box2d

public final Class Box2D

extends Object
Class Inheritance
Imports
com.badlogic.gdx.utils.SharedLibraryLoader

This class's only purpose is to initialize Box2D by calling its init() method.
Author
Daniel Holderbaum

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static void
init()

Loads the Box2D native library and initializes the gdx-box2d extension.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Box2Dback to summary
private Box2D()

Method Detail

initback to summary
public static void init()

Loads the Box2D native library and initializes the gdx-box2d extension. Must be called before any of the box2d classes/methods can be used. Currently with the exception of the World class, which will also cause the Box2D natives to be loaded.