Posted: 28 Aug 2014, 19:11
I'd like to see objects pass data upon collision! So they can affect each others' behavior, by passing state information.
Simplest case: as objects bounce around, they can play "Tag, you're it!", passing the ball leaving only one highlighted or playing sound at any given time.
I've done some experimentation with making this work with a FIFO queue in the form of a data array, but I have not yet had luck serializing the events that happen simultaneously (upon collision, both objects report a 'collide'). I'm still figuring out how to filter out collisions with the container's boundaries as well. First experiment I'm trying to pass a caption around among bouncing shapes.
Random thought - I wonder if others may find this helpful!
Shawn
Simplest case: as objects bounce around, they can play "Tag, you're it!", passing the ball leaving only one highlighted or playing sound at any given time.
I've done some experimentation with making this work with a FIFO queue in the form of a data array, but I have not yet had luck serializing the events that happen simultaneously (upon collision, both objects report a 'collide'). I'm still figuring out how to filter out collisions with the container's boundaries as well. First experiment I'm trying to pass a caption around among bouncing shapes.
Random thought - I wonder if others may find this helpful!
Shawn