<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.whirled.club/index.php?action=history&amp;feed=atom&amp;title=Mobs</id>
	<title>Mobs - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.whirled.club/index.php?action=history&amp;feed=atom&amp;title=Mobs"/>
	<link rel="alternate" type="text/html" href="https://wiki.whirled.club/index.php?title=Mobs&amp;action=history"/>
	<updated>2026-10-04T13:20:46Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.7</generator>
	<entry>
		<id>https://wiki.whirled.club/index.php?title=Mobs&amp;diff=1672&amp;oldid=prev</id>
		<title>Dragawn: Created page with &quot;'''Mobs''' are display objects used in an AVRG that move around a room in the room's 3D coordinate space. For example, a mob can fly behind a piece of furniture or cli...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.whirled.club/index.php?title=Mobs&amp;diff=1672&amp;oldid=prev"/>
		<updated>2018-08-26T13:23:32Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;Mobs&amp;#039;&amp;#039;&amp;#039; are display objects used in an AVRG that move around a &lt;a href=&quot;/wiki/Room&quot; title=&quot;Room&quot;&gt;room&lt;/a&gt; in the room&amp;#039;s 3D coordinate space. For example, a mob can fly behind a piece of &lt;a href=&quot;/wiki/Furniture&quot; title=&quot;Furniture&quot;&gt;furniture&lt;/a&gt; or cli...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''Mobs''' are display objects used in an AVRG that move around a [[room]] in the room's 3D coordinate space. For example, a mob can fly behind a piece of [[furniture]] or clip through player [[avatar]]s.&lt;br /&gt;
&lt;br /&gt;
Here are a couple of sample mobs from the test environment [http://code.threerings.net/svn/whirled/trunk/projects/avrg/probe AVRG Probe]. They are both positioned on the floor (y=0). Mob M1 is at about Z=0.4 and M2 is at about Z=0.6. The avatar is at Z=0.5, covers up M2 and is covered by M1.&lt;br /&gt;
&lt;br /&gt;
[[Image:MobClipping.png]]&lt;br /&gt;
&lt;br /&gt;
The [[server agent]] can perform three actions on mobs:&lt;br /&gt;
* spawn&lt;br /&gt;
* despawn&lt;br /&gt;
* moveTo&lt;br /&gt;
&lt;br /&gt;
A server agent cannot create DisplayObject instances, so in order to display them clients must register a function with the API that will create a mob using the name given by the server agent ([http://www.whirled.com/code/asdocs/com/whirled/avrg/LocalSubControl.html#setMobSpriteExporter() setMobSpriteExporter()]).&lt;br /&gt;
&lt;br /&gt;
When a player enters a new room or when the server agent spawns a mob in the player's current room, all mobs that are currently spawned in that room will be created using the exporter. Therefore, if a mob sprite is handling any events, it should be sure and remove itself from all processing on REMOVE.&lt;br /&gt;
&lt;br /&gt;
Besides game specific behavior, clients can set the hot spot of a mob, which will control its placement and give the mob a decoration which appears above it.&lt;br /&gt;
&lt;br /&gt;
[[Category:Coding terminology]]&lt;/div&gt;</summary>
		<author><name>Dragawn</name></author>
	</entry>
</feed>