Pathfinding LSL functions

De DigiWiki.

The pathfinding LSL functions enable you to create characters that dynamically avoid obstacles while performing typical behaviors you might want in a game or other virtual experience, including:

  • Evade - run away from a specified object or avatar. See llEvade.
  • Flee - Attempt to get a specified distance from a specified location. See llFleeFrom.
  • Navigate - Move to a specific location. See llNavigateTo.
  • Patrol - Move through a path defined by a set of "patrol points." See llPatrolPoints.
  • Pursue - Chase a specified object or avatar. See llPursue.
  • Wander - Randomly move around a specified distance from a specified central point. See llWanderWithin.
  • ExecCharacterCmd - Miscellaneous character-related functions such as stopping and jumping. See llExecCharacterCmd.
  • GetStaticPath - The only function which can be used on non-characters and on regions with dynamic pathfinding disabled. Returns a path to the goal. See llGetStaticPath

All 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.
  • llExecCharacterCmd - Send a command to the pathing system.
  • llFleeFrom - Attempt to get at least 'distance' away from 'source' - provided in region-local coordinates.
  • 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.
  • llGetStaticPath - Request a path for an object other than a pathfinding character.
  • 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.
Outils personnels
  • Cette page a été consultée 1 668 fois.
donate
Google Ads