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