| Package | Description |
|---|---|
| com.almasb.fxgl.physics.box2d.collision | |
| com.almasb.fxgl.physics.box2d.collision.shapes | |
| com.almasb.fxgl.physics.box2d.dynamics | |
| com.almasb.fxgl.physics.box2d.particle |
| Modifier and Type | Method and Description |
|---|---|
void |
Distance.DistanceProxy.set(Shape shape,
int index)
Initialize the proxy using the given shape.
|
boolean |
Collision.testOverlap(Shape shapeA,
int indexA,
Shape shapeB,
int indexB,
Transform xfA,
Transform xfB)
Determine if two generic shapes overlap.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ChainShape
A chain shape is a free form sequence of line segments.
|
class |
CircleShape
A circle shape.
|
class |
EdgeShape
A line segment (edge) shape.
|
class |
PolygonShape
A convex polygon shape.
|
| Modifier and Type | Method and Description |
|---|---|
abstract Shape |
Shape.clone() |
Shape |
PolygonShape.clone() |
Shape |
EdgeShape.clone() |
Shape |
CircleShape.clone() |
Shape |
ChainShape.clone() |
| Modifier and Type | Method and Description |
|---|---|
Shape |
FixtureDef.getShape()
The shape, this must be set.
|
Shape |
Fixture.getShape()
You can modify the child shape, however you should not change the number
of vertices because this will crash some collision caching mechanisms.
|
| Modifier and Type | Method and Description |
|---|---|
Fixture |
Body.createFixture(Shape shape,
float density)
Creates a fixture from a shape and attach it to this body.
|
int |
World.destroyParticlesInShape(Shape shape,
Transform xf)
Destroy particles inside a shape without enabling the destruction callback for destroyed
particles.
|
int |
World.destroyParticlesInShape(Shape shape,
Transform xf,
boolean callDestructionListener)
Destroy particles inside a shape.
|
void |
FixtureDef.setShape(Shape shape)
The shape, this must be set.
|
FixtureDef |
FixtureDef.shape(Shape shape) |
| Modifier and Type | Method and Description |
|---|---|
Shape |
ParticleGroupDef.getShape() |
| Modifier and Type | Method and Description |
|---|---|
int |
ParticleSystem.destroyParticlesInShape(Shape shape,
Transform xf,
boolean callDestructionListener) |
void |
ParticleGroupDef.setShape(Shape shape) |
Copyright © 2018. All rights reserved.