Hi All,
Been learning solar for a bit and find it fun. I’ve been trying to scale an image, which scales fine, but the collision box doesn’t seem to scale. My understanding is that if I scale the image first and then add it, the collision box should match. Here is an excerpt of my code. “enemy” is just an image that gets created
enemy = enemies.new(enemyOptions)
if enemyData.scale then
enemy:scale( enemyData.scale, enemyData.scale )
end
physics.addBody(enemy, "dynamic", {isSensor=true, density=0, friction=0, bounce=0, filter=collisionRules.enemyFilter})
…am I doing something wrong? or do I just misunderstand how it works?
-Gabe