C# Class Project290.Physics.Dynamics.BreakableBody

A type of body that supports multiple fixtures that can break apart.
Show file Open project: scastle/Solitude Class Usage Examples

Public Properties

Property Type Description
Broken bool
MainBody Body
Parts List
Strength float

Public Methods

Method Description
Break ( ) : void
BreakableBody ( IEnumerable vertices, World world, float density ) : System
BreakableBody ( IEnumerable vertices, World world, float density, Object userData ) : System
Update ( ) : void

Private Methods

Method Description
Decompose ( ) : void
PostSolve ( Contact contact, ContactConstraint impulse ) : void

Method Details

Break() public method

public Break ( ) : void
return void

BreakableBody() public method

public BreakableBody ( IEnumerable vertices, World world, float density ) : System
vertices IEnumerable
world World
density float
return System

BreakableBody() public method

public BreakableBody ( IEnumerable vertices, World world, float density, Object userData ) : System
vertices IEnumerable
world World
density float
userData Object
return System

Update() public method

public Update ( ) : void
return void

Property Details

Broken public property

public bool Broken
return bool

MainBody public property

public Body,Project290.Physics.Dynamics MainBody
return Body

Parts public property

public List Parts
return List

Strength public property

public float Strength
return float