Hey guys, I was wondering if any box2D (javascript) users here could help me with this issue I am having. I have some boxes that will float to the top of a block of water. This function works fine
//if inside the water
this.waterObj.GetBody().SetLinearVelocity(new b2Vec2(0,-2)); I want my water take the boxes like a wave, however when the water block collides with the boxes, the collision handler is NOT called… However if I drop my boxes into the water it works fine (even if the water block is moving) I think this is to do with the collision handler not being called on my blocks if they are stand still, I have set the
bodyDef.allowSleep = false; at creation and even reiterated throughout the boxes to check that sleeping is off; but this hasn’t changed anything, I even set the whole world sleep to false. Can anyone help me get the water collision handler to trigger if it hits my stand still (not sleeping) blocks? Cheers!