TileWithCollision.withAnimation constructor
TileWithCollision.withAnimation(})
Implementation
TileWithCollision.withAnimation(
ControlledUpdateAnimation animation,
Vector2 position, {
double width = 32,
double height = 32,
String? type,
Iterable<CollisionArea>? collisions,
double offsetX = 0,
double offsetY = 0,
Map<String, dynamic>? properties,
}) : super.fromAnimation(
animation,
position,
width: width,
height: height,
type: type,
properties: properties,
) {
collisions?.let((c) {
setupCollision(CollisionConfig(collisions: c));
});
}