PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
AIWorld Class Reference

Private Member Functions

private void AIWorld ()
 
private void ~AIWorld ()
 
proto native AIGroup CreateGroup (string templateName)
 
proto native AIGroup CreateDefaultGroup ()
 
proto native void DeleteGroup (notnull AIGroup group)
 
proto native bool FindPath (vector from, vector to, PGFilter pgFilter, out TVectorArray waypoints)
 
proto native bool RaycastNavMesh (vector from, vector to, PGFilter pgFilter, out vector hitPos, out vector hitNormal)
 
proto native bool SampleNavmeshPosition (vector position, float maxDistance, PGFilter pgFilter, out vector sampledPosition)
 

Constructor & Destructor Documentation

◆ AIWorld()

private void AIWorld ( )
private

◆ ~AIWorld()

private void ~AIWorld ( )
private

Member Function Documentation

◆ CreateDefaultGroup()

proto native AIGroup CreateDefaultGroup ( )
private

Creates group with no group behaviour

◆ CreateGroup()

proto native AIGroup CreateGroup ( string  templateName)
private

Creates group with group behaviour specified by templateName param. AIGroups lifetime is managed by AIWorld, e.g. empty groups are deleted automatically.

◆ DeleteGroup()

proto native void DeleteGroup ( notnull AIGroup  group)
private

Destroys group and all AIAgents attached

◆ FindPath()

proto native bool FindPath ( vector  from,
vector  to,
PGFilter  pgFilter,
out TVectorArray  waypoints 
)
private

Finds path on navmesh using path graph filter.

/param [in] from starting position /param [in] to ending position /param [in] pgFilter filter used for searching /param [out] waypoints waypoints array including starting and ending position /returns true - if path has been found

◆ RaycastNavMesh()

proto native bool RaycastNavMesh ( vector  from,
vector  to,
PGFilter  pgFilter,
out vector  hitPos,
out vector  hitNormal 
)
private

Raytest in navmesh

/param [in] from starting position /param [in] to ending position /param [in] pgFilter filter used for searching /param [out] hitPos hit position /param [out] hitNormal hit normal /returns true - if ray hits navmesh edge

◆ SampleNavmeshPosition()

proto native bool SampleNavmeshPosition ( vector  position,
float  maxDistance,
PGFilter  pgFilter,
out vector  sampledPosition 
)
private

Finds closest point on navmesh within maxDistance radius using path graph filter.

/param [in] position position wanted /param [in] maxDistance search radius /param [in] pgFilter filter used for searching /param [out] sampledPosition closest position on navmesh to position /returns true - function succeedes and found position is written to output paramter "sampledPosition" /returns false - function failed to find position on navmesh within given radius, output paramter is left intact


The documentation for this class was generated from the following file: