// Path: src/main/java/com/pesegato/collision/hitbox/HBRect.java
// public class HBRect extends DebuggableBody {
//     String name = "";
//     float w, h;
//     public long id;
// 
//     public HBRect(long id, float wP, float hP) {
//         this.id = id;
//         this.w = wP * SPRITE_SIZE;
//         this.h = hP * SPRITE_SIZE;
//         addFixture(new BodyFixture(new Rectangle(new Float(w), new Float(h))));
//     }
// 
//     public HBRect(String name, long id, float wP, float hP) {
//         this.name = name;
//         this.id = id;
//         this.w = wP * SPRITE_SIZE;
//         this.h = hP * SPRITE_SIZE;
//         addFixture(new BodyFixture(new Rectangle(new Float(w), new Float(h))));
//     }
// 
//     public HBRect(long id, Filter filter, int w, int h) {
//         this.id = id;
//         this.w = w;
//         this.h = h;
//         BodyFixture bf=new BodyFixture(new Rectangle(new Float(w), new Float(h)));
//         bf.setFilter(filter);
//         addFixture(bf);
//     }
// 
//     @Deprecated
//     public Node getNode(AssetManager assetM, ColorRGBA color) {
//         Node n = new Node();
//         if (SHOW_HITBOX) {
//             n.attachChild(makeHitboxMarker(assetM, n, color));
//         }
//         return n;
//     }
// 
//     public Convex getConvex() {
//         return new Rectangle(new Float(w), new Float(h));
//     }
// 
//     @Deprecated
//     public Dyn4JShapeControl getControl() {
//         return new Dyn4JShapeControl(getConvex(), MassType.INFINITE, this);
//     }
// 
//     @Override
//     public Geometry makeHitboxMarker(AssetManager assetManager, Node n, ColorRGBA color) {
//         Material mat = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md");
//         ColorRGBA col = color.clone();
//         col.a = .5f;
//         mat.setColor("Color", col);
//         mat.getAdditionalRenderState().setBlendMode(RenderState.BlendMode.Alpha);
//         Geometry geo = new Geometry(name, new Quad(w, h));
//         geo.setMaterial(mat);
//         geo.setLocalTranslation(-w / 2, -h / 2, 0);
//         return geo;
//     }
// }


import com.jme3.math.Quaternion;
import com.jme3.math.Vector3f;
import com.jme3.renderer.RenderManager;
import com.jme3.renderer.ViewPort;
import com.jme3.scene.Spatial;
import com.pesegato.collision.hitbox.HBRect;
import org.dyn4j.collision.CategoryFilter;
import org.dyn4j.collision.broadphase.BroadphaseDetector;
import org.dyn4j.dynamics.Body;
import org.dyn4j.dynamics.BodyFixture;
import org.dyn4j.geometry.Convex;
import org.dyn4j.geometry.MassType;
import org.dyn4j.geometry.Transform;
import org.dyn4j.geometry.Vector2;
package com.pesegato.collision;


@Deprecated
public class Dyn4JShapeControl extends IDyn4JControl {
    protected Body body;
    BodyFixture fixture;
    //private World world;
    BroadphaseDetector broadphase;
// Path: src/main/java/com/pesegato/collision/hitbox/HBRect.java
// public class HBRect extends DebuggableBody {
//     String name = "";
//     float w, h;
//     public long id;
// 
//     public HBRect(long id, float wP, float hP) {
//         this.id = id;
//         this.w = wP * SPRITE_SIZE;
//         this.h = hP * SPRITE_SIZE;
//         addFixture(new BodyFixture(new Rectangle(new Float(w), new Float(h))));
//     }
// 
//     public HBRect(String name, long id, float wP, float hP) {
//         this.name = name;
//         this.id = id;
//         this.w = wP * SPRITE_SIZE;
//         this.h = hP * SPRITE_SIZE;
//         addFixture(new BodyFixture(new Rectangle(new Float(w), new Float(h))));
//     }
// 
//     public HBRect(long id, Filter filter, int w, int h) {
//         this.id = id;
//         this.w = w;
//         this.h = h;
//         BodyFixture bf=new BodyFixture(new Rectangle(new Float(w), new Float(h)));
//         bf.setFilter(filter);
//         addFixture(bf);
//     }
// 
//     @Deprecated
//     public Node getNode(AssetManager assetM, ColorRGBA color) {
//         Node n = new Node();
//         if (SHOW_HITBOX) {
//             n.attachChild(makeHitboxMarker(assetM, n, color));
//         }
//         return n;
//     }
// 
//     public Convex getConvex() {
//         return new Rectangle(new Float(w), new Float(h));
//     }
// 
//     @Deprecated
//     public Dyn4JShapeControl getControl() {
//         return new Dyn4JShapeControl(getConvex(), MassType.INFINITE, this);
//     }
// 
//     @Override
//     public Geometry makeHitboxMarker(AssetManager assetManager, Node n, ColorRGBA color) {
//         Material mat = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md");
//         ColorRGBA col = color.clone();
//         col.a = .5f;
//         mat.setColor("Color", col);
//         mat.getAdditionalRenderState().setBlendMode(RenderState.BlendMode.Alpha);
//         Geometry geo = new Geometry(name, new Quad(w, h));
//         geo.setMaterial(mat);
//         geo.setLocalTranslation(-w / 2, -h / 2, 0);
//         return geo;
//     }
// }


// Path: src/main/java/com/pesegato/collision/Dyn4JShapeControl.java
import com.jme3.math.Quaternion;
import com.jme3.math.Vector3f;
import com.jme3.renderer.RenderManager;
import com.jme3.renderer.ViewPort;
import com.jme3.scene.Spatial;
import com.pesegato.collision.hitbox.HBRect;
import org.dyn4j.collision.CategoryFilter;
import org.dyn4j.collision.broadphase.BroadphaseDetector;
import org.dyn4j.dynamics.Body;
import org.dyn4j.dynamics.BodyFixture;
import org.dyn4j.geometry.Convex;
import org.dyn4j.geometry.MassType;
import org.dyn4j.geometry.Transform;
import org.dyn4j.geometry.Vector2;

package com.pesegato.collision;


@Deprecated
public class Dyn4JShapeControl extends IDyn4JControl {
    protected Body body;
    BodyFixture fixture;
    //private World world;
    BroadphaseDetector broadphase;
    HBRect hbRect;