BodyComponent<T extends Forge2DGame<Forge2DWorld> > constructor
BodyComponent<T extends Forge2DGame<Forge2DWorld> > ({})
Implementation
BodyComponent({
Paint? paint,
super.children,
super.priority,
this.renderBody = true,
this.bodyDef,
this.fixtureDefs,
super.key,
}) {
this.paint = paint ?? (Paint()..color = defaultColor);
}