C# 클래스 MyGame.FreeCamera

This class represent a Free Camera that move and rotate freely
상속: Camera
파일 보기 프로젝트 열기: mahmoudbahaa/XNA-Game-project

공개 프로퍼티들

프로퍼티 타입 설명
terrain Terrain

공개 메소드들

메소드 설명
FreeCamera ( MyGame game, Vector3 Position, float Yaw, float Pitch, float minHeight, float maxHeight ) : System
Move ( Vector3 Translation ) : void
Rotate ( float YawChange, float PitchChange ) : void
Update ( GameTime gameTime ) : void

Allows the component to run logic.

메소드 상세

FreeCamera() 공개 메소드

public FreeCamera ( MyGame game, Vector3 Position, float Yaw, float Pitch, float minHeight, float maxHeight ) : System
game MyGame
Position Vector3
Yaw float
Pitch float
minHeight float
maxHeight float
리턴 System

Move() 공개 메소드

public Move ( Vector3 Translation ) : void
Translation Vector3
리턴 void

Rotate() 공개 메소드

public Rotate ( float YawChange, float PitchChange ) : void
YawChange float
PitchChange float
리턴 void

Update() 공개 메소드

Allows the component to run logic.
public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime The gametime.
리턴 void

프로퍼티 상세

terrain 공개적으로 프로퍼티

public Terrain,MyGame terrain
리턴 Terrain