Class Box2dRadiusProximity

java.lang.Object
com.devcharles.piazzapanic.utility.box2d.Box2dSquareAABBProximity
com.devcharles.piazzapanic.utility.box2d.Box2dRadiusProximity
All Implemented Interfaces:
com.badlogic.gdx.ai.steer.Proximity<com.badlogic.gdx.math.Vector2>, com.badlogic.gdx.physics.box2d.QueryCallback

public class Box2dRadiusProximity extends Box2dSquareAABBProximity
A Box2dRadiusProximity is a Proximity that queries the world for all fixtures that potentially overlap the circle having the specified detection radius and whose center is the owner position.
Author:
davebaol
  • Constructor Details

    • Box2dRadiusProximity

      public Box2dRadiusProximity(com.badlogic.gdx.ai.steer.Steerable<com.badlogic.gdx.math.Vector2> owner, com.badlogic.gdx.physics.box2d.World world, float detectionRadius)
  • Method Details

    • getSteerable

      protected com.badlogic.gdx.ai.steer.Steerable<com.badlogic.gdx.math.Vector2> getSteerable(com.badlogic.gdx.physics.box2d.Fixture fixture)
      Overrides:
      getSteerable in class Box2dSquareAABBProximity
    • accept

      protected boolean accept(com.badlogic.gdx.ai.steer.Steerable<com.badlogic.gdx.math.Vector2> steerable)
      Overrides:
      accept in class Box2dSquareAABBProximity