menu
forge2d package
documentation
forge2d.dart
PolygonShape
centroid property
centroid property
dark_mode
light_mode
centroid
property
Vector2
centroid
final
Local position of the shape centroid in parent body frame.
Implementation
final Vector2 centroid = Vector2.zero();
forge2d package
documentation
forge2d
PolygonShape
centroid property
PolygonShape class