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

public Class MassData

extends Object
Class Inheritance
Imports
com.badlogic.gdx.math.Vector2

This holds the mass data computed for a shape.
Author
mzechner

Field Summary

Modifier and TypeField and Description
public final Vector2
center

The position of the shape's centroid relative to the shape's origin.

public float
I

The rotational inertia of the shape about the local origin.

public float
mass

The mass of the shape, usually in kilograms.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

centerback to summary
public final Vector2 center

The position of the shape's centroid relative to the shape's origin.

Iback to summary
public float I

The rotational inertia of the shape about the local origin.

massback to summary
public float mass

The mass of the shape, usually in kilograms.

Constructor Detail

MassDataback to summary
public MassData()