C# Class FarseerPhysics.Dynamics.BreakableBody

A type of body that supports multiple fixtures that can break apart.
Afficher le fichier Open project: prime31/Nez Class Usage Examples

Méthodes publiques

Свойство Type Description
isBroken bool
mainBody Body
parts List
strength float

Méthodes publiques

Méthode Description
BreakableBody ( World world, IEnumerable shapes, Vector2 position = newVector2(), float rotation ) : System
BreakableBody ( World world, IEnumerable vertices, float density, Vector2 position = newVector2(), float rotation ) : System
breakBody ( ) : void
decompose ( ) : void
onPostSolve ( Contact contact, ContactVelocityConstraint impulse ) : void
update ( ) : void

Method Details

BreakableBody() public méthode

public BreakableBody ( World world, IEnumerable shapes, Vector2 position = newVector2(), float rotation ) : System
world World
shapes IEnumerable
position Vector2
rotation float
Résultat System

BreakableBody() public méthode

public BreakableBody ( World world, IEnumerable vertices, float density, Vector2 position = newVector2(), float rotation ) : System
world World
vertices IEnumerable
density float
position Vector2
rotation float
Résultat System

breakBody() public méthode

public breakBody ( ) : void
Résultat void

decompose() public méthode

public decompose ( ) : void
Résultat void

onPostSolve() public méthode

public onPostSolve ( Contact contact, ContactVelocityConstraint impulse ) : void
contact FarseerPhysics.Dynamics.Contacts.Contact
impulse FarseerPhysics.Dynamics.Contacts.ContactVelocityConstraint
Résultat void

update() public méthode

public update ( ) : void
Résultat void

Property Details

isBroken public_oe property

public bool isBroken
Résultat bool

mainBody public_oe property

public Body,FarseerPhysics.Dynamics mainBody
Résultat Body

parts public_oe property

public List parts
Résultat List

strength public_oe property

The force needed to break the body apart. Default: 500
public float strength
Résultat float