Table of Contents

Class NodeExtensions

Namespace
Fantas.Physics
Assembly
Fantas.dll

Convenient methods to setup physics body to a Node

public static class NodeExtensions
Inheritance
NodeExtensions
Inherited Members

Methods

SetupBody(CircleNode, int)

Set a physics body to a circle node

public static void SetupBody(this CircleNode circleNode, int category = -1)

Parameters

circleNode CircleNode
category int

body category

SetupBody(PolygonNode, int)

Set a physics body to a polygon node

public static void SetupBody(this PolygonNode polygon, int category = -1)

Parameters

polygon PolygonNode
category int

body category

SetupBody(RectangleNode, int)

public static void SetupBody(this RectangleNode rectangleNode, int category = -1)

Parameters

rectangleNode RectangleNode
category int

body category

SetupBody(SpriteNode, int)

Set a physics body to a sprite node

public static void SetupBody(this SpriteNode spriteNode, int category = -1)

Parameters

spriteNode SpriteNode
category int

body category

SetupBody(SpritePolylineNode, int)

Set a physics body to a sprite polyline node

public static void SetupBody(this SpritePolylineNode polyline, int category = -1)

Parameters

polyline SpritePolylineNode
category int

body category

SetupBody(TriangleNode, int)

Set a physics body to a sprite node

public static void SetupBody(this TriangleNode triangle, int category = -1)

Parameters

triangle TriangleNode
category int

body category

SetupEdge(RectangleNode, int)

public static void SetupEdge(this RectangleNode rectangleNode, int category = -1)

Parameters

rectangleNode RectangleNode
category int

body category

SetupEdge(Scene, int)

Set a physics body edge to an scene

public static void SetupEdge(this Scene scene, int category = -1)

Parameters

scene Scene
category int

body category

SetupEdge(SpriteNode, int)

Set a physics body edge to a sprite node

public static void SetupEdge(this SpriteNode spriteNode, int category = -1)

Parameters

spriteNode SpriteNode
category int

body category