Package it.unibo.alchemist.model.implementations.actions

Types

Link copied to clipboard
class CameraInjectVisibleNodeClosestToDistance(    node: Node<Any>,     environment: Physics2DEnvironment<Any>,     distance: Double,     visionMolecule: Molecule,     targetMolecule: Molecule) : AbstractAction<Any>

Given a list of VisibleNode associated to visionMolecule, it finds the closest to a point located at distance from node in the direction of node's heading, and injects its position in targetMolecule.

Link copied to clipboard
class CameraSee @JvmOverloads constructor(    node: Node<Any>,     environment: Physics2DEnvironment<Any>,     val distance: Double,     val angle: Double,     outputMolecule: Molecule = SimpleMolecule("vision"),     filterByMolecule: Molecule? = null) : AbstractAction<Any>

Checks nodes in the environment and writes in outputMolecule the list of it.unibo.alchemist.model.interfaces.VisibleNode, containing filterByMolecule. distance and angle define the field of view.