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

public Class FixtureDef

extends Object
Class Inheritance

A fixture definition is used to create a fixture. This class defines an abstract fixture definition. You can reuse fixture definitions safely.
Author
mzechner

Field Summary

Modifier and TypeField and Description
public float
density

The density, usually in kg/m^2.

public final Filter
filter

Contact filtering data.

public float
friction

The friction coefficient, usually in the range [0,1].

public boolean
isSensor

A sensor shape collects contact information but never generates a collision response.

public float
restitution

The restitution (elasticity) usually in the range [0,1].

public Shape
shape

The shape, this must be set.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

densityback to summary
public float density

The density, usually in kg/m^2.

filterback to summary
public final Filter filter

Contact filtering data.

frictionback to summary
public float friction

The friction coefficient, usually in the range [0,1].

isSensorback to summary
public boolean isSensor

A sensor shape collects contact information but never generates a collision response.

restitutionback to summary
public float restitution

The restitution (elasticity) usually in the range [0,1].

shapeback to summary
public Shape shape

The shape, this must be set. The shape will be cloned, so you can create the shape on the stack.

Constructor Detail

FixtureDefback to summary
public FixtureDef()