| Package | Description |
|---|---|
| com.almasb.fxgl.entity | |
| com.almasb.fxgl.entity.component | |
| com.almasb.fxgl.physics |
| Modifier and Type | Method and Description |
|---|---|
Entities.GameEntityBuilder |
Entities.GameEntityBuilder.bbox(HitBox box) |
| Modifier and Type | Method and Description |
|---|---|
javafx.collections.ObservableList<HitBox> |
BoundingBoxComponent.hitBoxesProperty() |
| Modifier and Type | Method and Description |
|---|---|
void |
BoundingBoxComponent.addHitBox(HitBox hitBox)
Add a hit (collision) bounding box.
|
| Constructor and Description |
|---|
BoundingBoxComponent(HitBox... boxes) |
| Modifier and Type | Method and Description |
|---|---|
HitBox |
CollisionResult.getBoxA() |
HitBox |
CollisionResult.getBoxB() |
| Modifier and Type | Method and Description |
|---|---|
void |
CollisionResult.init(HitBox boxA,
HitBox boxB)
Init CollisionResult with positive result, i.e.
|
static boolean |
SAT.isColliding(HitBox box1,
HitBox box2,
double angle1,
double angle2)
Note: NOT thread-safe but GC-friendly.
|
protected void |
CollisionHandler.onHitBoxTrigger(Entity a,
Entity b,
HitBox boxA,
HitBox boxB)
Called once per collision during the same tick when collision occurred.
|
Copyright © 2017. All rights reserved.