C# Class BEPUphysicsDrawer.Models.DisplayEntityModel

Display object of a model that follows an entity.
Inheritance: SelfDrawingModelDisplayObject
Mostra file Open project: Indiefreaks/igf Class Usage Examples

Public Methods

Method Description
DisplayEntityModel ( Entity entity, Model model, ModelDrawer modelDrawer ) : BEPUphysics.Entities

Constructs a new display model.

Draw ( Matrix viewMatrix, Matrix projectionMatrix ) : void

Draws the display object.

Update ( ) : void

Updates the display object.

Method Details

DisplayEntityModel() public method

Constructs a new display model.
public DisplayEntityModel ( Entity entity, Model model, ModelDrawer modelDrawer ) : BEPUphysics.Entities
entity BEPUphysics.Entities.Entity Entity to follow.
model Microsoft.Xna.Framework.Graphics.Model Model to draw on the entity.
modelDrawer ModelDrawer Model drawer to use.
return BEPUphysics.Entities

Draw() public method

Draws the display object.
public Draw ( Matrix viewMatrix, Matrix projectionMatrix ) : void
viewMatrix Microsoft.Xna.Framework.Matrix Current view matrix.
projectionMatrix Microsoft.Xna.Framework.Matrix Current projection matrix.
return void

Update() public method

Updates the display object.
public Update ( ) : void
return void