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
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
-
Nested Class Summary
Nested classes/interfaces inherited from class com.devcharles.piazzapanic.utility.box2d.Box2dSquareAABBProximity
Box2dSquareAABBProximity.AABB
Nested classes/interfaces inherited from interface com.badlogic.gdx.ai.steer.Proximity
com.badlogic.gdx.ai.steer.Proximity.ProximityCallback<T extends com.badlogic.gdx.math.Vector<T>>
-
Field Summary
Fields inherited from class com.devcharles.piazzapanic.utility.box2d.Box2dSquareAABBProximity
behaviorCallback, detectionRadius, owner, world
-
Constructor Summary
ConstructorDescriptionBox2dRadiusProximity
(com.badlogic.gdx.ai.steer.Steerable<com.badlogic.gdx.math.Vector2> owner, com.badlogic.gdx.physics.box2d.World world, float detectionRadius) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
accept
(com.badlogic.gdx.ai.steer.Steerable<com.badlogic.gdx.math.Vector2> steerable) protected com.badlogic.gdx.ai.steer.Steerable<com.badlogic.gdx.math.Vector2>
getSteerable
(com.badlogic.gdx.physics.box2d.Fixture fixture) Methods inherited from class com.devcharles.piazzapanic.utility.box2d.Box2dSquareAABBProximity
findNeighbors, getDetectionRadius, getOwner, getWorld, prepareAABB, reportFixture, setDetectionRadius, setOwner, setWorld
-
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 classBox2dSquareAABBProximity
-
accept
protected boolean accept(com.badlogic.gdx.ai.steer.Steerable<com.badlogic.gdx.math.Vector2> steerable) - Overrides:
accept
in classBox2dSquareAABBProximity
-