C# Class Project2.GameObjects.Abstract.ModelPhysicsObject

Inheritance: ModelGameObject, IPhysicsObject
Mostrar archivo Open project: nuclearpidgeon/graphicsproj2 Class Usage Examples

Public Methods

Method Description
Destroy ( System.Boolean Async = false ) : void

Implements object destroying in a manner that can be called asynchronously The first call to this function doesn't actually destroy the object, but sets a flag to destroy it. Calling this function again will remove the object. A suggested use case it to call this function if ToDestroy is inside Update()

Draw ( SharpDX gametime ) : void
Update ( SharpDX.Toolkit.GameTime gametime ) : void

Protected Methods

Method Description
GeneratePhysicsDescription ( ) : RigidBody
ModelPhysicsObject ( Project2Game game, SharpDX.Toolkit.Graphics.Model model, System.Vector3 position ) : System

Create a ModelPhysicsObject with default size and orientation.

ModelPhysicsObject ( Project2Game game, SharpDX.Toolkit.Graphics.Model model, System.Vector3 position, System.Vector3 orientation, System.Vector3 size ) : System

Method Details

Destroy() public method

Implements object destroying in a manner that can be called asynchronously The first call to this function doesn't actually destroy the object, but sets a flag to destroy it. Calling this function again will remove the object. A suggested use case it to call this function if ToDestroy is inside Update()
public Destroy ( System.Boolean Async = false ) : void
Async System.Boolean
return void

Draw() public method

public Draw ( SharpDX gametime ) : void
gametime SharpDX
return void

GeneratePhysicsDescription() protected method

protected GeneratePhysicsDescription ( ) : RigidBody
return RigidBody

ModelPhysicsObject() protected method

Create a ModelPhysicsObject with default size and orientation.
protected ModelPhysicsObject ( Project2Game game, SharpDX.Toolkit.Graphics.Model model, System.Vector3 position ) : System
game Project2Game
model SharpDX.Toolkit.Graphics.Model
position System.Vector3
return System

ModelPhysicsObject() protected method

protected ModelPhysicsObject ( Project2Game game, SharpDX.Toolkit.Graphics.Model model, System.Vector3 position, System.Vector3 orientation, System.Vector3 size ) : System
game Project2Game
model SharpDX.Toolkit.Graphics.Model
position System.Vector3
orientation System.Vector3
size System.Vector3
return System

Update() public method

public Update ( SharpDX.Toolkit.GameTime gametime ) : void
gametime SharpDX.Toolkit.GameTime
return void