C# Class BasicModel, XNA

Show file Open project: hatRiot/XNA Class Usage Examples

Public Properties

Property Type Description
rot float
rotation Matrix

Protected Properties

Property Type Description
world Matrix
worldTranslation Matrix

Public Methods

Method Description
BasicModel ( Model m ) : System
Draw ( Vector3 player, bool isGun ) : void
GetWorld ( ) : Matrix
Update ( Vector3 position ) : void

Private Methods

Method Description
LoadModelBS ( Model m ) : Model
TransformBoundingSphere ( BoundingSphere originalBoundingSphere, Matrix transformationMatrix ) : BoundingSphere

Method Details

BasicModel() public method

public BasicModel ( Model m ) : System
m Model
return System

Draw() public method

public Draw ( Vector3 player, bool isGun ) : void
player Vector3
isGun bool
return void

GetWorld() public method

public GetWorld ( ) : Matrix
return Matrix

Update() public method

public Update ( Vector3 position ) : void
position Vector3
return void

Property Details

rot public property

public float rot
return float

rotation public property

public Matrix rotation
return Matrix

world protected property

protected Matrix world
return Matrix

worldTranslation protected property

protected Matrix worldTranslation
return Matrix