After resolving kinemetic collisions of bullet with walls by following code
function handle_obstacle_contact(self, normal, distance)
local proj = vmath.dot(self.correction, normal)
local comp = (distance - proj) * normal
self.correction = self.correction + comp
go.set_position(go.get_position() + comp)
if normal.y > 0.7 then
self.ground_contact = true
end
proj = vmath.dot(self.velocity, normal)
if proj < 0 then
self.velocity = self.velocity - proj * normal
end
end
jittering issues with walls fixed but in case of enemies/bricks its not sometime scollisions issues happen when bullet collide inbetween of two enemies with collision shape