C# Класс Indiefreaks.Xna.Logic.Steering.AutonomousAgent

The AutonomousAgent class owns and exposes a set of Steering Behaviors that can be configured by the underlying SceneObject or SceneEntity.
Наследование: NonPlayerAgent, IAutonomousEntity
Показать файл Открыть проект

Открытые методы

Метод Описание
ApplySteeringForce ( GameTime gameTime ) : void

Applies the Steering Force to the current Velocity and Speed values

Override this method to modify how the computed Steering Force is applied

AutonomousAgent ( ) : System

Creates a new instance

DisableSteeringBehaviors ( ) : void

Disable all SteeringBehaviors

ForceVelocity ( Vector3 direction, float speed ) : void

OnInitialize ( ) : void

Event called when the component's parent object is assigned or reassigned.

OnUpdate ( GameTime gametime ) : void

Event called when the parent object is updated during the game update loop.

ResetVelocity ( ) : void

Resets Velocity to Zero immediately

UpdateParentObject ( GameTime gameTime ) : void

Based on the computed Velocity and Speed, updates the parent object World Matrix

Override this method to modify how the computed Velocity is applied

Приватные методы

Метод Описание
AccumulateForce ( Vector3 &runningTot, Vector3 forceToAdd ) : bool
AdjustVelocityForSmoothRotation ( GameTime gameTime ) : Vector3
ComputePrioritizedDitheringSteeringForce ( ) : void
ComputePrioritizedTruncatedWeightedSteeringForce ( ) : void
ComputeTruncatedWeightedSteeringForce ( ) : void
ResetSteeringForces ( ) : void

Описание методов

ApplySteeringForce() публичный Метод

Applies the Steering Force to the current Velocity and Speed values
Override this method to modify how the computed Steering Force is applied
public ApplySteeringForce ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Результат void

AutonomousAgent() публичный Метод

Creates a new instance
public AutonomousAgent ( ) : System
Результат System

DisableSteeringBehaviors() публичный Метод

Disable all SteeringBehaviors
public DisableSteeringBehaviors ( ) : void
Результат void

ForceVelocity() публичный Метод

public ForceVelocity ( Vector3 direction, float speed ) : void
direction Vector3
speed float
Результат void

OnInitialize() публичный Метод

Event called when the component's parent object is assigned or reassigned.
public OnInitialize ( ) : void
Результат void

OnUpdate() публичный Метод

Event called when the parent object is updated during the game update loop.
public OnUpdate ( GameTime gametime ) : void
gametime Microsoft.Xna.Framework.GameTime
Результат void

ResetVelocity() публичный Метод

Resets Velocity to Zero immediately
public ResetVelocity ( ) : void
Результат void

UpdateParentObject() публичный Метод

Based on the computed Velocity and Speed, updates the parent object World Matrix
Override this method to modify how the computed Velocity is applied
public UpdateParentObject ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Результат void