love.physics scale problem

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
snoweee
Prole
Posts: 1
Joined: Wed Dec 10, 2014 10:16 am

love.physics scale problem

Post by snoweee »

Hi,

I dont know how to solve a problem.I have two objects:
-player who is an dynamic object
-ground who is a static object

If ground has a bigger surface and player collide then there will be a gap between them, also if ground is smaller than player then they will overlap.
it's working grate when both of them have the same width and height
i attached a .love file

i don;t know how to solve this problem :(
Attachments
physics.love
my love file
(1.9 KiB) Downloaded 65 times
User avatar
Azhukar
Party member
Posts: 478
Joined: Fri Oct 26, 2012 11:54 am

Re: love.physics scale problem

Post by Azhukar »

You're drawing your world wrong. See debugWorldDraw.lua included in this .love file.
Attachments
physics_debug.love
(6.22 KiB) Downloaded 67 times
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 4 guests