Space Engineers
Public Member Functions | List of all members
Sandbox.Game.AI.Pathfinding.MyRandomLocationSphere Class Reference
Inheritance diagram for Sandbox.Game.AI.Pathfinding.MyRandomLocationSphere:
Sandbox.Game.AI.Pathfinding.IMyDestinationShape

Public Member Functions

 MyRandomLocationSphere (Vector3D worldCenter, float radius, Vector3D direction)
 
void Init (ref Vector3D worldCenter, float radius, Vector3D direction)
 
void SetRelativeTransform (MatrixD invWorldTransform)
 Should set the relative transform (matrix, relative vector or whatever is needed) from the world position. This will then allow the shape to be updated using UpdateWorldTransform. More...
 
void UpdateWorldTransform (MatrixD worldTransform)
 Should update world transform of this shape from the transform previously saved by SetRelativeTransform More...
 
float PointAdmissibility (Vector3D position, float tolerance)
 Should return the distance of the given point from the ideal position in the destination shape. If the point is outside of the destination shape, PositiveInfinity should be returned. Tolerance can be provided to allow points that lie further from the shape. More...
 
Vector3D GetClosestPoint (Vector3D queryPoint)
 Returns the point from the shape that is closest to the query point More...
 
Vector3D GetBestPoint (Vector3D queryPoint)
 Returns the ideal point towards the pathfinding should steer when starting from the query point. The difference between GetClosestPoint and this method can be shown on an example of a sphere shape: For outside points, GetClosestPoint will return points on the sphere's surface, whereas this method will always return the center of the sphere. More...
 
Vector3D GetDestination ()
 Returns center of the shape for pathfinding heuristics More...
 
void DebugDraw ()
 

Detailed Description

Definition at line 9 of file MyRandomLocationSphere.cs.

Constructor & Destructor Documentation

Sandbox.Game.AI.Pathfinding.MyRandomLocationSphere.MyRandomLocationSphere ( Vector3D  worldCenter,
float  radius,
Vector3D  direction 
)
inline

Definition at line 16 of file MyRandomLocationSphere.cs.

Member Function Documentation

void Sandbox.Game.AI.Pathfinding.MyRandomLocationSphere.DebugDraw ( )
inline
Vector3D Sandbox.Game.AI.Pathfinding.MyRandomLocationSphere.GetBestPoint ( Vector3D  queryPoint)
inline

Returns the ideal point towards the pathfinding should steer when starting from the query point. The difference between GetClosestPoint and this method can be shown on an example of a sphere shape: For outside points, GetClosestPoint will return points on the sphere's surface, whereas this method will always return the center of the sphere.

Note that for more complicated shapes (e.g. donut), this method returns different point that GetCenter.

Implements Sandbox.Game.AI.Pathfinding.IMyDestinationShape.

Definition at line 65 of file MyRandomLocationSphere.cs.

Vector3D Sandbox.Game.AI.Pathfinding.MyRandomLocationSphere.GetClosestPoint ( Vector3D  queryPoint)
inline

Returns the point from the shape that is closest to the query point

Implements Sandbox.Game.AI.Pathfinding.IMyDestinationShape.

Definition at line 49 of file MyRandomLocationSphere.cs.

Vector3D Sandbox.Game.AI.Pathfinding.MyRandomLocationSphere.GetDestination ( )
inline

Returns center of the shape for pathfinding heuristics

Implements Sandbox.Game.AI.Pathfinding.IMyDestinationShape.

Definition at line 75 of file MyRandomLocationSphere.cs.

void Sandbox.Game.AI.Pathfinding.MyRandomLocationSphere.Init ( ref Vector3D  worldCenter,
float  radius,
Vector3D  direction 
)
inline

Definition at line 21 of file MyRandomLocationSphere.cs.

float Sandbox.Game.AI.Pathfinding.MyRandomLocationSphere.PointAdmissibility ( Vector3D  position,
float  tolerance 
)
inline

Should return the distance of the given point from the ideal position in the destination shape. If the point is outside of the destination shape, PositiveInfinity should be returned. Tolerance can be provided to allow points that lie further from the shape.

Implements Sandbox.Game.AI.Pathfinding.IMyDestinationShape.

Definition at line 38 of file MyRandomLocationSphere.cs.

void Sandbox.Game.AI.Pathfinding.MyRandomLocationSphere.SetRelativeTransform ( MatrixD  invWorldTransform)
inline

Should set the relative transform (matrix, relative vector or whatever is needed) from the world position. This will then allow the shape to be updated using UpdateWorldTransform.

Implements Sandbox.Game.AI.Pathfinding.IMyDestinationShape.

Definition at line 28 of file MyRandomLocationSphere.cs.

void Sandbox.Game.AI.Pathfinding.MyRandomLocationSphere.UpdateWorldTransform ( MatrixD  worldTransform)
inline

Should update world transform of this shape from the transform previously saved by SetRelativeTransform

Implements Sandbox.Game.AI.Pathfinding.IMyDestinationShape.

Definition at line 33 of file MyRandomLocationSphere.cs.


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