Difference between revisions of "Pathfinding in Second Life"

From Second Life Wiki
Jump to: navigation, search
Line 1: Line 1:
 
{{Pathfinding alpha}}
 
{{Pathfinding alpha}}
 +
__TOC__
 +
<div style="margin: 10px; padding: 0 10px 10px 10px; border: 1px solid #ddd; background-color: #ffffaa; width: 600px;">
 +
== Testing information ==
 +
* [[Pathfinding testing information]]
 +
</div>
  
 
==Pathfinding API Documentation==
 
==Pathfinding API Documentation==
Line 23: Line 28:
  
 
* [[path_update]] - Informs the script of events that happen within the pathfinding system.
 
* [[path_update]] - Informs the script of events that happen within the pathfinding system.
 
=== Testing information ===
 
* [[Pathfinding testing information]]
 

Revision as of 14:05, 16 February 2012

Testing information

Pathfinding API Documentation

LSL reference

Pathfinding functions

  • llCreateCharacter - Convert the current linkset to an AI character. By default, the character's shape will be an upright capsule approximately the size of the linkset, adjustable via the options list. The linkset must use mesh accounting.
  • llDeleteCharacter - Convert the current linkset back to a standard object
  • llEvade - Causes the character to keep away from the object or avatar identified by the key.
  • llExecPathingCmd - Send a command to the pathing system - currently only supports stopping pathing.
  • llGetClosestNavPoint - Accepts a point in region-local space and returns either an empty list or a list containing a single vector which is the closest point on the navmesh to the point provided.
  • llFleeFrom - Attempt to get at least 'distance' away from 'source' - provided in region-local coordinates.
  • llNavigateTo - Navigate to a destination provided in region coordinates. The destination may be in another region.
  • llPatrolPoints - Patrol a provided set of points provided as vectors.
  • llPursue - Causes the character to chase after the object or avatar identified by the key.
  • llUpdateCharacter - Update character properties.
  • llWanderWithin - Wander within an area approximately 'scale' in radius centered at 'origin'. Wandering means choosing a random point in the area and navigating to it. After arrival, a new random point will be chosen and navigated to.

Pathfinding events

  • path_update - Informs the script of events that happen within the pathfinding system.