libgdx API

com.badlogic.gdx.physics.box2d
Class MassData

java.lang.Object
  extended by com.badlogic.gdx.physics.box2d.MassData

public class MassData
extends java.lang.Object

This holds the mass data computed for a shape.

Author:
mzechner

Field Summary
 Vector2 center
          The position of the shape's centroid relative to the shape's origin.
 float I
          The rotational inertia of the shape about the local origin.
 float mass
          The mass of the shape, usually in kilograms.
 
Constructor Summary
MassData()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mass

public float mass
The mass of the shape, usually in kilograms.


center

public final Vector2 center
The position of the shape's centroid relative to the shape's origin.


I

public float I
The rotational inertia of the shape about the local origin.

Constructor Detail

MassData

public MassData()

libgdx API

Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)