Is anyone else having issues with the windfield physics library not working? For example, my character can go through walls, which are static and a collision class.
function spawnWalls(x, y, width, height)
if width > 0 and height > 0 then
local wall = world:newRectangleCollider(x, y, width, height)
wall:setCollisionClass('Wall')
wall:setType('static')
table.insert(walls, wall)
end
end
Some collision classes also just don't work, for example I have an enemy class that should ignore the payer class, yet it doesn't the player can push it around.
Yeah,I defined them all after I created my physics world like this. They do work sometimes but not all of the time.
world:addCollisionClass('Player')
world:addCollisionClass('Wall')
world:addCollisionClass('Enemy', {ignores = {'Player'}})
world:addCollisionClass('Weapon', {ignores = {'Player'}})
world:addCollisionClass('Bullet',{ignores = {'Player','Enemy'}})