All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.almasb.fxgl.physics.CollisionResult Maven / Gradle / Ivy

There is a newer version: 21.1
Show newest version
/*
 * FXGL - JavaFX Game Library. The MIT License (MIT).
 * Copyright (c) AlmasB ([email protected]).
 * See LICENSE for details.
 */
package com.almasb.fxgl.physics;

/**
 * Data structure for holding info about collision.
 *
 * @author Almas Baimagambetov (AlmasB) ([email protected])
 */
public final class CollisionResult {

    private HitBox boxA;
    private HitBox boxB;

    public void init(HitBox boxA, HitBox boxB) {
        this.boxA = boxA;
        this.boxB = boxB;
    }

    public HitBox getBoxA() {
        return boxA;
    }

    public HitBox getBoxB() {
        return boxB;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy