2021-05-11 18:30:36 -07:00

999 B
Raw Permalink Blame History

Planck.js API Doc › Globals › MassData

Class: MassData

MassData This holds the mass data computed for a shape.

Hierarchy

  • MassData

Index

Properties

Properties

I

• I: number = 0

Defined in src/dynamics/Body.ts:140

The rotational inertia of the shape about the local origin.


center

• center: Vec2‹› = Vec2.zero()

Defined in src/dynamics/Body.ts:138

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


mass

• mass: number = 0

Defined in src/dynamics/Body.ts:136

The mass of the shape, usually in kilograms.