fix: barrier obstructing dino movement (#339)

pull/344/head
Allison Ryan 2 years ago committed by GitHub
parent faba9ed85b
commit f6719c93cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -36,12 +36,14 @@ class DinoDesert extends Component {
}
class _BarrierBehindDino extends BodyComponent {
_BarrierBehindDino() : super(renderBody: false);
@override
Body createBody() {
final shape = EdgeShape()
..set(
Vector2(25, -14.2),
Vector2(25, -7.7),
Vector2(25.3, -14.2),
Vector2(25.3, -7.7),
);
return world.createBody(BodyDef())..createFixtureFromShape(shape);

Loading…
Cancel
Save