C# Class Project290.Physics.Dynamics.BreakableBody

A type of body that supports multiple fixtures that can break apart.
Mostrar archivo 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_oe property

public bool Broken
return bool

MainBody public_oe property

public Body,Project290.Physics.Dynamics MainBody
return Body

Parts public_oe property

public List Parts
return List

Strength public_oe property

public float Strength
return float