Package com.prineside.luaj.mapping.parts
Class LJ_GDX_ai.RaycastCollisionDetector_FJ.LIP
java.lang.Object
com.prineside.luaj.mapping.InterfaceProxy
com.prineside.luaj.mapping.parts.LJ_GDX_ai.RaycastCollisionDetector_FJ.LIP
- All Implemented Interfaces:
com.badlogic.gdx.ai.utils.RaycastCollisionDetector
,com.esotericsoftware.kryo.KryoSerializable
- Enclosing class:
- LJ_GDX_ai.RaycastCollisionDetector_FJ
public static class LJ_GDX_ai.RaycastCollisionDetector_FJ.LIP
extends InterfaceProxy
implements com.badlogic.gdx.ai.utils.RaycastCollisionDetector
-
Method Summary
Modifier and TypeMethodDescriptionboolean
collides
(com.badlogic.gdx.ai.utils.Ray p1) Casts the given ray to test if it collides with any objects in the game world.boolean
findCollision
(com.badlogic.gdx.ai.utils.Collision p1, com.badlogic.gdx.ai.utils.Ray p2) Find the closest collision between the given input ray and the objects in the game world.Methods inherited from class com.prineside.luaj.mapping.InterfaceProxy
getLuaObj, read, write
-
Method Details
-
collides
public boolean collides(com.badlogic.gdx.ai.utils.Ray p1) Description copied from interface:com.badlogic.gdx.ai.utils.RaycastCollisionDetector
Casts the given ray to test if it collides with any objects in the game world.- Specified by:
collides
in interfacecom.badlogic.gdx.ai.utils.RaycastCollisionDetector
- Parameters:
p1
- the ray to cast.- Returns:
true
in case of collision;false
otherwise.
-
findCollision
public boolean findCollision(com.badlogic.gdx.ai.utils.Collision p1, com.badlogic.gdx.ai.utils.Ray p2) Description copied from interface:com.badlogic.gdx.ai.utils.RaycastCollisionDetector
Find the closest collision between the given input ray and the objects in the game world. In case of collision,outputCollision
will contain the collision point and the normal vector of the obstacle at the point of collision.- Specified by:
findCollision
in interfacecom.badlogic.gdx.ai.utils.RaycastCollisionDetector
- Parameters:
p1
- the output collision.p2
- the ray to cast.- Returns:
true
in case of collision;false
otherwise.
-