C# Class Nez.Farseer.FSDebugView

A debug view shows you what happens inside the physics engine. You can view bodies, joints, fixtures and more.
Inheritance: RenderableComponent, IDisposable
Exibir arquivo Open project: prime31/Nez Class Usage Examples

Public Properties

Property Type Description
adaptiveLimits bool
debugPanelPosition Vector2
defaultShapeColor Color
flags DebugViewFlags
inactiveShapeColor Color
kinematicShapeColor Color
maximumValue float
minimumValue float
performancePanelBounds Microsoft.Xna.Framework.Rectangle
sleepingShapeColor Color
staticShapeColor Color
textColor Color
valuesToGraph int

Protected Properties

Property Type Description
world FarseerPhysics.Dynamics.World

Public Methods

Method Description
Dispose ( ) : void
FSDebugView ( ) : System
FSDebugView ( World world ) : System
appendFlags ( DebugViewFlags flags ) : void

Append flags to the current flags

beginCustomDraw ( ) : void
drawAABB ( AABB &aabb, Color color ) : void
drawArrow ( Vector2 start, Vector2 end, float length, float width, bool drawStartIndicator, Color color ) : void
drawCircle ( Vector2 center, float radius, Color color ) : void
drawCircle ( Vector2 center, float radius, float red, float green, float blue ) : void
drawPoint ( Vector2 p, float size, Color color ) : void
drawPolygon ( Vector2 vertices, int count, Color color, bool closed = true ) : void
drawPolygon ( Vector2 vertices, int count, float red, float green, float blue, bool closed = true ) : void
drawSegment ( Vector2 start, Vector2 end, Color color ) : void
drawSegment ( Vector2 start, Vector2 end, float red, float green, float blue ) : void
drawShape ( Fixture fixture, FarseerPhysics xf, Color color ) : void
drawSolidCircle ( Vector2 center, float radius, Vector2 axis, Color color ) : void
drawSolidCircle ( Vector2 center, float radius, Vector2 axis, float red, float green, float blue ) : void
drawSolidPolygon ( Vector2 vertices, int count, Color color, bool outline = true ) : void
drawSolidPolygon ( Vector2 vertices, int count, float red, float green, float blue ) : void
drawString ( Vector2 position, string text ) : void
drawString ( int x, int y, string text ) : void
drawTransform ( FarseerPhysics &transform ) : void
endCustomDraw ( ) : void
onAddedToEntity ( ) : void
removeFlags ( DebugViewFlags flags ) : void

Remove flags from the current flags

render ( Graphics graphics, Camera camera ) : void

Private Methods

Method Description
drawDebugData ( ) : void

Call this to draw shapes and other debug draw data.

drawDebugPanel ( ) : void
drawJoint ( FSDebugView instance, Joint joint ) : void
drawPerformanceGraph ( ) : void
preSolve ( Contact contact, Manifold &oldManifold ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

FSDebugView() public method

public FSDebugView ( ) : System
return System

FSDebugView() public method

public FSDebugView ( World world ) : System
world FarseerPhysics.Dynamics.World
return System

appendFlags() public method

Append flags to the current flags
public appendFlags ( DebugViewFlags flags ) : void
flags DebugViewFlags Flags.
return void

beginCustomDraw() public method

public beginCustomDraw ( ) : void
return void

drawAABB() public method

public drawAABB ( AABB &aabb, Color color ) : void
aabb FarseerPhysics.Collision.AABB
color Color
return void

drawArrow() public method

public drawArrow ( Vector2 start, Vector2 end, float length, float width, bool drawStartIndicator, Color color ) : void
start Vector2
end Vector2
length float
width float
drawStartIndicator bool
color Color
return void

drawCircle() public method

public drawCircle ( Vector2 center, float radius, Color color ) : void
center Vector2
radius float
color Color
return void

drawCircle() public method

public drawCircle ( Vector2 center, float radius, float red, float green, float blue ) : void
center Vector2
radius float
red float
green float
blue float
return void

drawPoint() public method

public drawPoint ( Vector2 p, float size, Color color ) : void
p Vector2
size float
color Color
return void

drawPolygon() public method

public drawPolygon ( Vector2 vertices, int count, Color color, bool closed = true ) : void
vertices Vector2
count int
color Color
closed bool
return void

drawPolygon() public method

public drawPolygon ( Vector2 vertices, int count, float red, float green, float blue, bool closed = true ) : void
vertices Vector2
count int
red float
green float
blue float
closed bool
return void

drawSegment() public method

public drawSegment ( Vector2 start, Vector2 end, Color color ) : void
start Vector2
end Vector2
color Color
return void

drawSegment() public method

public drawSegment ( Vector2 start, Vector2 end, float red, float green, float blue ) : void
start Vector2
end Vector2
red float
green float
blue float
return void

drawShape() public method

public drawShape ( Fixture fixture, FarseerPhysics xf, Color color ) : void
fixture FarseerPhysics.Dynamics.Fixture
xf FarseerPhysics
color Color
return void

drawSolidCircle() public method

public drawSolidCircle ( Vector2 center, float radius, Vector2 axis, Color color ) : void
center Vector2
radius float
axis Vector2
color Color
return void

drawSolidCircle() public method

public drawSolidCircle ( Vector2 center, float radius, Vector2 axis, float red, float green, float blue ) : void
center Vector2
radius float
axis Vector2
red float
green float
blue float
return void

drawSolidPolygon() public method

public drawSolidPolygon ( Vector2 vertices, int count, Color color, bool outline = true ) : void
vertices Vector2
count int
color Color
outline bool
return void

drawSolidPolygon() public method

public drawSolidPolygon ( Vector2 vertices, int count, float red, float green, float blue ) : void
vertices Vector2
count int
red float
green float
blue float
return void

drawString() public method

public drawString ( Vector2 position, string text ) : void
position Vector2
text string
return void

drawString() public method

public drawString ( int x, int y, string text ) : void
x int
y int
text string
return void

drawTransform() public method

public drawTransform ( FarseerPhysics &transform ) : void
transform FarseerPhysics
return void

endCustomDraw() public method

public endCustomDraw ( ) : void
return void

onAddedToEntity() public method

public onAddedToEntity ( ) : void
return void

removeFlags() public method

Remove flags from the current flags
public removeFlags ( DebugViewFlags flags ) : void
flags DebugViewFlags Flags.
return void

render() public method

public render ( Graphics graphics, Camera camera ) : void
graphics Graphics
camera Camera
return void

Property Details

adaptiveLimits public_oe property

public bool adaptiveLimits
return bool

debugPanelPosition public_oe property

public Vector2 debugPanelPosition
return Vector2

defaultShapeColor public_oe property

public Color defaultShapeColor
return Color

flags public_oe property

Gets or sets the debug view flags
public DebugViewFlags flags
return DebugViewFlags

inactiveShapeColor public_oe property

public Color inactiveShapeColor
return Color

kinematicShapeColor public_oe property

public Color kinematicShapeColor
return Color

maximumValue public_oe property

public float maximumValue
return float

minimumValue public_oe property

public float minimumValue
return float

performancePanelBounds public_oe property

public Rectangle,Microsoft.Xna.Framework performancePanelBounds
return Microsoft.Xna.Framework.Rectangle

sleepingShapeColor public_oe property

public Color sleepingShapeColor
return Color

staticShapeColor public_oe property

public Color staticShapeColor
return Color

textColor public_oe property

public Color textColor
return Color

valuesToGraph public_oe property

public int valuesToGraph
return int

world protected_oe property

the World we are drawing
protected World,FarseerPhysics.Dynamics world
return FarseerPhysics.Dynamics.World