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

com.almasb.fxgl.physics.box2d.collision.broadphase.DynamicTreeNode 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.box2d.collision.broadphase;

import com.almasb.fxgl.physics.box2d.collision.AABB;

public class DynamicTreeNode {
    /**
     * Enlarged AABB
     */
    public final AABB aabb = new AABB();

    public Object userData;

    protected DynamicTreeNode parent;

    protected DynamicTreeNode child1;
    protected DynamicTreeNode child2;
    protected final int id;
    protected int height;

    public Object getUserData() {
        return userData;
    }

    public void setUserData(Object argData) {
        userData = argData;
    }

    protected DynamicTreeNode(int id) {
        this.id = id;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy