|
@ -132,7 +132,7 @@ class PhysicsWorker { |
|
|
optionsNode.options.mass = opts.mass; |
|
|
optionsNode.options.mass = opts.mass; |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
console.warn('sending properties to unknown node'); |
|
|
|
|
|
|
|
|
console.warn('sending properties to unknown node', data.id, data.options); |
|
|
} |
|
|
} |
|
|
} else if (data.type === 'edge') { |
|
|
} else if (data.type === 'edge') { |
|
|
let edge = this.body.edges[data.id]; |
|
|
let edge = this.body.edges[data.id]; |
|
@ -142,10 +142,10 @@ class PhysicsWorker { |
|
|
edge.connected = opts.connected; |
|
|
edge.connected = opts.connected; |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
console.warn('sending properties to unknown edge'); |
|
|
|
|
|
|
|
|
console.warn('sending properties to unknown edge', data.id, data.options); |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
console.warn('sending properties to unknown element'); |
|
|
|
|
|
|
|
|
console.warn('sending properties to unknown element', data.id, data.options); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|