Improve physics

This commit is contained in:
schmelczerandras 2020-10-06 09:26:56 +02:00
parent 8b87b68dae
commit ec0b700313
14 changed files with 181 additions and 71 deletions

View file

@ -71,7 +71,7 @@ export class PhysicalContainer {
private createGroupForCommand(commandType: string) {
const objectsReactingToCommand = [];
console.log(commandType);
this.objects.forEach((o, _) => {
if (o.reactsToCommand(commandType)) {
objectsReactingToCommand.push(o);