Example using Matter collisions events
data-collision-start-action
data-collision-end-action
Here is a simple demo that continues its fall by being reset
Version with inline code:
Example_Data_Attribute_Matter_Collisions.hype.zip (46,1 KB)
Version using a single Hype function (switch on event.type
):
Example_Data_Attribute_Matter_Collisions_Hype_function.hype.zip (46,8 KB)
↑ look at project
1.0.5 Fixed typo that prevented collision events to be detected
Make sure to purge your Browser cache and restart Hype when using examples after I made an GitHub update!