Class b2MassData

This holds the mass data computed for a shape.

Index

Properties

Properties

public I: number

The rotational inertia of the shape. This may be about the center or local origin, depending on usage.

public center: b2Vec2

The position of the shape's centroid relative to the shape's origin.

public mass: number

The mass of the shape, usually in kilograms.