| Package | Description |
|---|---|
| org.jbox2d.collision.shapes | |
| org.jbox2d.dynamics |
| Modifier and Type | Method and Description |
|---|---|
MassData |
MassData.clone()
Return a copy of this object.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
Shape.computeMass(MassData massData,
float density)
Compute the mass properties of this shape using its dimensions and density.
|
void |
CircleShape.computeMass(MassData massData,
float density) |
void |
PolygonShape.computeMass(MassData massData,
float density) |
void |
EdgeShape.computeMass(MassData massData,
float density) |
void |
ChainShape.computeMass(MassData massData,
float density) |
void |
MassData.set(MassData md) |
| Constructor and Description |
|---|
MassData(MassData md)
Copies from the given mass data
|
| Modifier and Type | Method and Description |
|---|---|
void |
Body.getMassData(MassData data)
Get the mass data of the body.
|
void |
Fixture.getMassData(MassData massData)
Get the mass data for this fixture.
|
void |
Body.setMassData(MassData massData)
Set the mass properties to override the mass properties of the fixtures.
|
Copyright © 2017. All Rights Reserved.