C# Class Box2D.Collision.Shapes.MassData

This holds the mass data computed for a shape.
Afficher le fichier Open project: gerich-home/box2dnet Class Usage Examples

Méthodes publiques

Свойство Type Description
Center Box2D.Common.Vec2
I float
Mass float

Méthodes publiques

Méthode Description
Clone ( ) : MassData

Return a copy of this object.

MassData ( ) : Box2D.Common

Blank mass data

MassData ( MassData md ) : Box2D.Common

Copies from the given mass data

Set ( MassData md ) : void

Method Details

Clone() public méthode

Return a copy of this object.
public Clone ( ) : MassData
Résultat MassData

MassData() public méthode

Blank mass data
public MassData ( ) : Box2D.Common
Résultat Box2D.Common

MassData() public méthode

Copies from the given mass data
public MassData ( MassData md ) : Box2D.Common
md MassData mass data to copy from
Résultat Box2D.Common

Set() public méthode

public Set ( MassData md ) : void
md MassData
Résultat void

Property Details

Center public_oe property

The position of the shape's centroid relative to the shape's origin.
public Vec2,Box2D.Common Center
Résultat Box2D.Common.Vec2

I public_oe property

The rotational inertia of the shape about the local origin.
public float I
Résultat float

Mass public_oe property

The mass of the shape, usually in kilograms.
public float Mass
Résultat float