Ammo.js How to reset/disable impact impulse for one entity during collision between two dynamic rigid bodies

This is similar to Avoid collision b/w two rigidbodies