Take Camera: Difference between revisions
No edit summary |
(add tooltip text) |
||
Line 6: | Line 6: | ||
<section begin=image/>[[File:Take Camera.png|alt=take camera block|thumb]]<section end=image/> | <section begin=image/>[[File:Take Camera.png|alt=take camera block|thumb]]<section end=image/> | ||
{{#vardefine:take camera|<code>take camera</code>}} | {{#vardefine:take camera|<code>take camera</code>}} | ||
<section begin=name/>'''<code>take camera</code>'''<section end=name/> is a [[code block]] part of the [[agents]] drawer. | <section begin=name/><p id="tooltip">Enables perspective of over-agent’s-shoulder view; i.e., the camera follows the agent around.</p> | ||
'''<code>take camera</code>'''<section end=name/> is a [[code block]] part of the [[agents]] drawer. | |||
==Usage== <!--T:8--> | ==Usage== <!--T:8--> | ||
<!--T:2--> | <!--T:2--> | ||
<code>take camera</code> changes the camera perspective to be from the point of view of the agent executing the code. | |||
<!--T:3--> | <!--T:3--> | ||
{{#var:take camera}} can be useful for implementing interactive games from the first-person perspective. | {{#var:take camera}} can be useful for implementing interactive games from the first-person perspective. | ||
<!--T:4--> | <!--T:4--> |
Revision as of 14:28, 8 August 2023
Enables perspective of over-agent’s-shoulder view; i.e., the camera follows the agent around.
take camera
is a code block part of the agents drawer.
Usage
take camera
changes the camera perspective to be from the point of view of the agent executing the code.
take camera
can be useful for implementing interactive games from the first-person perspective.
Syntax
(in reference to the agent itself) take camera