Collidee: Difference between revisions

From StarLogo Nova Wiki
m (Added image tags)
Line 3: Line 3:
<section begin="name" />'''{{Block|collidee}}'''<section end="name" /> is a [[code block]] part of the [[Detection]] drawer.
<section begin="name" />'''{{Block|collidee}}'''<section end="name" /> is a [[code block]] part of the [[Detection]] drawer.
==Usage==
==Usage==
{{Block|collidee}} is used to refer to the [[agent]] that has been collided with when used inside a {{Block|On Collision With Do|on collision with [▼] do}} [[stack]] of code.
<p id="tooltip">{{Block|collidee}} is used to refer to the [[agent]] that has been collided with when used inside a {{Block|On Collision With Do|on collision with [▼] do}} [[stack]] of code.
This block is used as a [[socket]] in other blocks, such as <code>[[Delete Agent|delete agent [_]]]</code>
This block is used as a [[socket]] in other blocks, such as <code>[[Delete Agent|delete agent [_]]]</code></p>


==Nuances==
==Nuances==

Revision as of 18:54, 17 August 2022

The collidee block

collidee is a code block part of the Detection drawer.

Usage

collidee is used to refer to the agent that has been collided with when used inside a on collision with [▼] do stack of code. This block is used as a socket in other blocks, such as delete agent [_]

Nuances

collidee only has significance when used inside a stack of code initialized by a on collision with [▼] do block.

Related Blocks

Relevant Activities