Space Engineers
Public Member Functions | Properties | List of all members
Sandbox.Game.AI.Navigation.MyBotNavigation Class Reference

Public Member Functions

bool HasRotation (float epsilon=0.0316f)
 
bool HasXRotation (float epsilon)
 
bool HasYRotation (float epsilon)
 
 MyBotNavigation ()
 
void Cleanup ()
 
void ChangeEntity (IMyControllableEntity newEntity)
 
void Update (int behaviorTicks)
 
void AddSteering (MySteeringBase steering)
 
void RemoveSteering (MySteeringBase steering)
 
bool HasSteeringOfType (Type steeringType)
 
void Goto (Vector3D position, float radius=0.0f, MyEntity relativeEntity=null)
 
void Goto (IMyDestinationShape destination, MyEntity relativeEntity=null)
 Tells the bot to go to the given world coordinate. If the relative entity is set, the coordinate is updated automatically as the entity moves More...
 
void GotoNoPath (Vector3D worldPosition, float radius=0.0f, MyEntity relativeEntity=null, bool resetStuckDetection=true)
 
bool CheckReachability (Vector3D worldPosition, float threshold, MyEntity relativeEntity=null)
 
void Flyto (Vector3D worldPosition, MyEntity relativeEntity=null)
 Tells the bot to fly to the given world coordinate. If the relative entity is set, the coordinate is updated automatically as the entity moves More...
 
void Stop ()
 Stop the bot from moving. More...
 
void StopImmediate (bool forceUpdate=false)
 
void FollowPath (IMyPath path)
 
void AimAt (MyEntity entity, Vector3D?worldPosition=null)
 
void AimWithMovement ()
 
void StopAiming ()
 
void DebugDraw ()
 

Properties

Vector3 ForwardVector [get]
 Current wanted forward vector More...
 
Vector3 UpVector [get]
 Current wanted up vector More...
 
float Speed [get]
 Current wanted Speed More...
 
bool Navigating [get]
 Whether the navigation is moving the bot towards a target. Beware: the bot could still be stuck More...
 
bool Stuck [get]
 
Vector3D TargetPoint [get]
 
MyEntity BotEntity [get]
 
float MaximumRotationAngle [get, set]
 
Vector3 GravityDirection [get]
 
MatrixD PositionAndOrientation [get]
 Current position and orientation of the controlled entity More...
 
MatrixD PositionAndOrientationInverted [get]
 
MatrixD AimingPositionAndOrientation [get]
 
MatrixD AimingPositionAndOrientationInverted [get]
 

Detailed Description

Definition at line 21 of file MyBotNavigation.cs.

Constructor & Destructor Documentation

Sandbox.Game.AI.Navigation.MyBotNavigation.MyBotNavigation ( )
inline

Definition at line 180 of file MyBotNavigation.cs.

Member Function Documentation

void Sandbox.Game.AI.Navigation.MyBotNavigation.AddSteering ( MySteeringBase  steering)
inline

Definition at line 413 of file MyBotNavigation.cs.

void Sandbox.Game.AI.Navigation.MyBotNavigation.AimAt ( MyEntity  entity,
Vector3D worldPosition = null 
)
inline

Definition at line 508 of file MyBotNavigation.cs.

void Sandbox.Game.AI.Navigation.MyBotNavigation.AimWithMovement ( )
inline

Definition at line 529 of file MyBotNavigation.cs.

void Sandbox.Game.AI.Navigation.MyBotNavigation.ChangeEntity ( IMyControllableEntity  newEntity)
inline

Definition at line 205 of file MyBotNavigation.cs.

bool Sandbox.Game.AI.Navigation.MyBotNavigation.CheckReachability ( Vector3D  worldPosition,
float  threshold,
MyEntity  relativeEntity = null 
)
inline

Definition at line 467 of file MyBotNavigation.cs.

void Sandbox.Game.AI.Navigation.MyBotNavigation.Cleanup ( )
inline

Definition at line 197 of file MyBotNavigation.cs.

void Sandbox.Game.AI.Navigation.MyBotNavigation.DebugDraw ( )
inline

Definition at line 552 of file MyBotNavigation.cs.

void Sandbox.Game.AI.Navigation.MyBotNavigation.Flyto ( Vector3D  worldPosition,
MyEntity  relativeEntity = null 
)
inline

Tells the bot to fly to the given world coordinate. If the relative entity is set, the coordinate is updated automatically as the entity moves

Definition at line 479 of file MyBotNavigation.cs.

void Sandbox.Game.AI.Navigation.MyBotNavigation.FollowPath ( IMyPath  path)
inline

Definition at line 502 of file MyBotNavigation.cs.

void Sandbox.Game.AI.Navigation.MyBotNavigation.Goto ( Vector3D  position,
float  radius = 0.0f,
MyEntity  relativeEntity = null 
)
inline

Definition at line 435 of file MyBotNavigation.cs.

void Sandbox.Game.AI.Navigation.MyBotNavigation.Goto ( IMyDestinationShape  destination,
MyEntity  relativeEntity = null 
)
inline

Tells the bot to go to the given world coordinate. If the relative entity is set, the coordinate is updated automatically as the entity moves

Definition at line 446 of file MyBotNavigation.cs.

void Sandbox.Game.AI.Navigation.MyBotNavigation.GotoNoPath ( Vector3D  worldPosition,
float  radius = 0.0f,
MyEntity  relativeEntity = null,
bool  resetStuckDetection = true 
)
inline

Definition at line 460 of file MyBotNavigation.cs.

bool Sandbox.Game.AI.Navigation.MyBotNavigation.HasRotation ( float  epsilon = 0.0316f)
inline

Definition at line 163 of file MyBotNavigation.cs.

bool Sandbox.Game.AI.Navigation.MyBotNavigation.HasSteeringOfType ( Type  steeringType)
inline

Definition at line 423 of file MyBotNavigation.cs.

bool Sandbox.Game.AI.Navigation.MyBotNavigation.HasXRotation ( float  epsilon)
inline

Definition at line 169 of file MyBotNavigation.cs.

bool Sandbox.Game.AI.Navigation.MyBotNavigation.HasYRotation ( float  epsilon)
inline

Definition at line 175 of file MyBotNavigation.cs.

void Sandbox.Game.AI.Navigation.MyBotNavigation.RemoveSteering ( MySteeringBase  steering)
inline

Definition at line 418 of file MyBotNavigation.cs.

void Sandbox.Game.AI.Navigation.MyBotNavigation.Stop ( )
inline

Stop the bot from moving.

Definition at line 488 of file MyBotNavigation.cs.

void Sandbox.Game.AI.Navigation.MyBotNavigation.StopAiming ( )
inline

Definition at line 534 of file MyBotNavigation.cs.

void Sandbox.Game.AI.Navigation.MyBotNavigation.StopImmediate ( bool  forceUpdate = false)
inline

Definition at line 494 of file MyBotNavigation.cs.

void Sandbox.Game.AI.Navigation.MyBotNavigation.Update ( int  behaviorTicks)
inline

Definition at line 217 of file MyBotNavigation.cs.

Property Documentation

MatrixD Sandbox.Game.AI.Navigation.MyBotNavigation.AimingPositionAndOrientation
get

Definition at line 136 of file MyBotNavigation.cs.

MatrixD Sandbox.Game.AI.Navigation.MyBotNavigation.AimingPositionAndOrientationInverted
get

Definition at line 150 of file MyBotNavigation.cs.

MyEntity Sandbox.Game.AI.Navigation.MyBotNavigation.BotEntity
get

Definition at line 85 of file MyBotNavigation.cs.

Vector3 Sandbox.Game.AI.Navigation.MyBotNavigation.ForwardVector
get

Current wanted forward vector

Definition at line 45 of file MyBotNavigation.cs.

Vector3 Sandbox.Game.AI.Navigation.MyBotNavigation.GravityDirection
get

Definition at line 98 of file MyBotNavigation.cs.

float Sandbox.Game.AI.Navigation.MyBotNavigation.MaximumRotationAngle
getset

Definition at line 93 of file MyBotNavigation.cs.

bool Sandbox.Game.AI.Navigation.MyBotNavigation.Navigating
get

Whether the navigation is moving the bot towards a target. Beware: the bot could still be stuck

Definition at line 61 of file MyBotNavigation.cs.

MatrixD Sandbox.Game.AI.Navigation.MyBotNavigation.PositionAndOrientation
get

Current position and orientation of the controlled entity

Definition at line 108 of file MyBotNavigation.cs.

MatrixD Sandbox.Game.AI.Navigation.MyBotNavigation.PositionAndOrientationInverted
get

Definition at line 122 of file MyBotNavigation.cs.

float Sandbox.Game.AI.Navigation.MyBotNavigation.Speed
get

Current wanted Speed

Definition at line 55 of file MyBotNavigation.cs.

bool Sandbox.Game.AI.Navigation.MyBotNavigation.Stuck
get

Definition at line 69 of file MyBotNavigation.cs.

Vector3D Sandbox.Game.AI.Navigation.MyBotNavigation.TargetPoint
get

Definition at line 77 of file MyBotNavigation.cs.

Vector3 Sandbox.Game.AI.Navigation.MyBotNavigation.UpVector
get

Current wanted up vector

Definition at line 50 of file MyBotNavigation.cs.


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