I'm working on a project that involves a draggable ball. Multiple people can participate in throwing the ball on a website in real time. So far I have this working well.
When the ball is dragged, a handleBallChange function fires that updates the ball for all other users.
var draggable = Draggable.create($ball, {
type: 'x, y',
inertia: true,
throwProps: true,
onDragEnd: function() {
var data = {
x: this.endX,
y: this.endY,
duration: this.tween.durati
I'm working on a project that involves a draggable ball. Multiple people can participate in throwing the ball on a website in real time. So far I have this working well.
When the ball is dragged, a handleBallChange function fires that updates the ball for all other users.
var draggable = Draggable.create($ball, {
type: 'x, y',
inertia: true,
throwProps: true,
onDragEnd: function() {
var data = {
x: this.endX,
y: this.endY,
duration: this.tween.durati