+ const entityA = SumoFactory.createSumo(null, {
+ position: {
+ x: 50,
+ y: 50
+ }
+ });
+
+ const entityB = SumoFactory.createSumo(null, {
+ position: {
+ x: 309,
+ y: 112
+ }
+ });
+
+ const entityC = SumoFactory.createSumo(null, {
+ position: {
+ x: 500,
+ y: 78
+ }
+ });
+
+ SumoFactory.createRubberBand(this._engine, {
+ entityA,
+ entityB
+ });
+
+ SumoFactory.createRubberBand(this._engine, {
+ entityA: entityC,
+ entityB
+ });
+
+ // To keep the coupling behind, we'll manually add the sumos later
+
+ this._engine.addEntity(entityA);
+ this._engine.addEntity(entityB);
+ this._engine.addEntity(entityC);