C# 클래스 Project2.GameObjects.Abstract.ModelPhysicsObject

상속: ModelGameObject, IPhysicsObject
파일 보기 프로젝트 열기: nuclearpidgeon/graphicsproj2 1 사용 예제들

공개 메소드들

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

보호된 메소드들

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

메소드 상세

Destroy() 공개 메소드

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
리턴 void

Draw() 공개 메소드

public Draw ( SharpDX gametime ) : void
gametime SharpDX
리턴 void

GeneratePhysicsDescription() 보호된 메소드

protected GeneratePhysicsDescription ( ) : RigidBody
리턴 RigidBody

ModelPhysicsObject() 보호된 메소드

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
리턴 System

ModelPhysicsObject() 보호된 메소드

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
리턴 System

Update() 공개 메소드

public Update ( SharpDX.Toolkit.GameTime gametime ) : void
gametime SharpDX.Toolkit.GameTime
리턴 void