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
파일 보기 프로젝트 열기: Indiefreaks/igf

공개 메소드들

메소드 설명
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