If with asm.js you set the object's property "Collision Mask" to "Circle", "Is Overlapping" or "On Collision" conditions are not triggering because this collision mask is bigger than object's bounding box, so if i set object's collision polygons (in image editor) to bounding box (or i can set anything else), it is impossible for that object to collide with other objects with that polygons, because they just cannot reach other objects with that collision mask. In box2d this mask is little less than in asm.js and at least while the ball is rolling, the Is Overlapping always triggers.
Attach a Capx
Description of Capx
A layout with a ball object and ground object with physics (asm.js), event sheet with events - If ball is overlapping ground set text to yeah, else set text to nope, and Is in touch event that applies little torque to ball. So if you touch or hold mouse buttons in preview the ball will roll.
Steps to Reproduce Bug
- Open project, start preview, let the ball hit the ground.
- Notice that Is Overlapping condition is not triggering
- Touch the layout or hold mouse buttons, the ball will roll, see, Is Overlapping is triggering as it starts to roll, but sometimes for a half of second it is not triggering while the ball rolling, i guess this is because when ball's angle = 0 or 90 or 180 or 270 its bounding box cannot reach the ground to overlap it.
Is Overlapping or On collision conditions are not triggering, when they should because collision mask is bigger than object's bounding box.
If circle object is on the ground, Is Overlapping triggers.
- Chrome: (YES)
- FireFox: (YES)
- Internet Explorer: (YES)
Operating System and Service Pack
Windows 7, 8.1 64bit latest drivers.
Construct 2 Version ID