Difference between revisions of "Pathfinding Cookbook"

From Second Life Wiki
Jump to navigation Jump to search
m
 
Line 5: Line 5:
The code below is for a simple rezzer for the creatures. For a region scale rezzer system see [[Holistic_Pathfinding_Management]]
The code below is for a simple rezzer for the creatures. For a region scale rezzer system see [[Holistic_Pathfinding_Management]]


<lsl>
<source lang="lsl2">


</lsl>
</source>


=Simple Creatures=
=Simple Creatures=
Line 14: Line 14:
Wanders pauses and eat, wanders, repeat.
Wanders pauses and eat, wanders, repeat.


<lsl>
<source lang="lsl2">


</lsl>
</source>


==Sentient Treasure Chest==
==Sentient Treasure Chest==
Treasure chest with legs. Sleeps, but runs and hides if anyone approaches.
Treasure chest with legs. Sleeps, but runs and hides if anyone approaches.


<lsl>
<source lang="lsl2">


</lsl>
</source>


==Fairy==
==Fairy==
Wanders about (flying) looking for flowers, lingers by flowers, runs and hides from agents.
Wanders about (flying) looking for flowers, lingers by flowers, runs and hides from agents.


<lsl>
<source lang="lsl2">


</lsl>
</source>


==Dragonfly==
==Dragonfly==
Moves along designated path, lingers by designated waypoint and moves to next random waypoint.
Moves along designated path, lingers by designated waypoint and moves to next random waypoint.


<lsl>
<source lang="lsl2">


</lsl>
</source>


==Snake==
==Snake==
Wanders about an area, includes special movement example.
Wanders about an area, includes special movement example.


<lsl>
<source lang="lsl2">


</lsl>
</source>


==Treetop Birds==
==Treetop Birds==
Birds that move between treetops at random intervals.
Birds that move between treetops at random intervals.


<lsl>
<source lang="lsl2">


</lsl>
</source>
    
    
==Vulture==
==Vulture==
Birds that glide about on thermals
Birds that glide about on thermals


<lsl>
<source lang="lsl2">


</lsl>
</source>


=Ecosystem Creatures=
=Ecosystem Creatures=
Line 65: Line 65:
Wanders looking for specific prey and pursues when prey is spotted.
Wanders looking for specific prey and pursues when prey is spotted.


<lsl>
<source lang="lsl2">


</lsl>
</source>


==Grazing Prey Animal==
==Grazing Prey Animal==
Wanders and pauses to eat, run a short distance when approached (skittish), runs further and hides from specific predator.
Wanders and pauses to eat, run a short distance when approached (skittish), runs further and hides from specific predator.


<lsl>
<source lang="lsl2">


</lsl>
</source>


==Rat==
==Rat==
Wanders about a specified area, flees and hides if an agent approaches.
Wanders about a specified area, flees and hides if an agent approaches.


<lsl>
<source lang="lsl2">


</lsl>
</source>


==Mount==
==Mount==
Build a character that can be ridden with race example.
Build a character that can be ridden with race example.


<lsl>
<source lang="lsl2">


</lsl>
</source>


==Dog==
==Dog==
Wanders about, chooses random agent, follows agent for a period, then wanders off, if no agents found sleeps.
Wanders about, chooses random agent, follows agent for a period, then wanders off, if no agents found sleeps.


<lsl>
<source lang="lsl2">


</lsl>
</source>


==Cat==
==Cat==
Wanders about, chooses random agent, lingers by agent, then wanders again, if no agents found sleeps.
Wanders about, chooses random agent, lingers by agent, then wanders again, if no agents found sleeps.


<lsl>
<source lang="lsl2">


</lsl>
</source>


==Hopping Scarecrow==
==Hopping Scarecrow==
Wanders about hopping and approaches random people, lingers and moves on.
Wanders about hopping and approaches random people, lingers and moves on.


<lsl>
<source lang="lsl2">


</lsl>
</source>


----
----
Return to [[Good_Building_Practices]]
Return to [[Good_Building_Practices]]

Latest revision as of 15:34, 25 January 2015

UNDER DEVELOPMENT - INCOMPLETE

Rezzer

The code below is for a simple rezzer for the creatures. For a region scale rezzer system see Holistic_Pathfinding_Management

Simple Creatures

Grazing Animal

Wanders pauses and eat, wanders, repeat.

Sentient Treasure Chest

Treasure chest with legs. Sleeps, but runs and hides if anyone approaches.

Fairy

Wanders about (flying) looking for flowers, lingers by flowers, runs and hides from agents.

Dragonfly

Moves along designated path, lingers by designated waypoint and moves to next random waypoint.

Snake

Wanders about an area, includes special movement example.

Treetop Birds

Birds that move between treetops at random intervals.

Vulture

Birds that glide about on thermals

Ecosystem Creatures

Hunting Animal

Wanders looking for specific prey and pursues when prey is spotted.

Grazing Prey Animal

Wanders and pauses to eat, run a short distance when approached (skittish), runs further and hides from specific predator.

Rat

Wanders about a specified area, flees and hides if an agent approaches.

Mount

Build a character that can be ridden with race example.

Dog

Wanders about, chooses random agent, follows agent for a period, then wanders off, if no agents found sleeps.

Cat

Wanders about, chooses random agent, lingers by agent, then wanders again, if no agents found sleeps.

Hopping Scarecrow

Wanders about hopping and approaches random people, lingers and moves on.


Return to Good_Building_Practices