Collision detection
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Collision detection
How to make collision?
Re: Collision detection
Depends on the kind/complexity you want. Probably best is to use http://vrld.github.com/HardonCollider/
It was the best of times, it was the worst of times . . .
Re: Collision detection
I want really simple collision that is just a wall
Re: Collision detection
Collision detection can be quite complicated depending on what you are doing, could you either give us a .love or expain the collison detector needed (i.e. is it a gridaligned rectangle colliding with a grid aligned rectangle or a point collideing with a rectangle or non grid aligned rectangles colliding etc)
Your screen is very zoomed in...
Re: Collision detection
Best way to do collision is using the handy search function on the forums. There are plenty of topics here on collision detection.
- Puzzlem00n
- Party member
- Posts: 171
- Joined: Fri Apr 06, 2012 8:49 pm
- Contact:
Re: Collision detection
I agree with the others. If you want collisions, you need to describe more to us, like what is colliding with the wall in the first place.
I LÖVE, therefore I am.
Re: Collision detection
What about:
That does work for me.
Code: Select all
if player.x >= wall.x - player.sprite:getWidht() then
player.x = wall.x - player.sprite:getWidht()
end
That does work for me.
Re: Collision detection
Why doesn't your avatar say "obey"? Banned from forums. lolKasperelo wrote:What about:Code: Select all
if player.x >= wall.x - player.sprite:getWidht() then player.x = wall.x - player.sprite:getWidht() end
That does work for me.
Re: Collision detection
Why don't you have an avatar that says "obey"?LaserGuns wrote:Why doesn't your avatar say "obey"? Banned from forums. lol
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
Re: Collision detection
Uh... well... SHUT UP lolNixola wrote:Why don't you have an avatar that says "obey"?LaserGuns wrote:Why doesn't your avatar say "obey"? Banned from forums. lol
Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot] and 1 guest