Of course...
Cheers.
Search found 53 matches
- Wed Jul 08, 2009 8:02 pm
- Forum: Support and Development
- Topic: Mac question
- Replies: 12
- Views: 5709
- Wed Jul 08, 2009 7:56 pm
- Forum: Support and Development
- Topic: Mac question
- Replies: 12
- Views: 5709
Mac question
On a mac, how do I explore a .love file?
- Mon Jun 22, 2009 9:11 am
- Forum: General
- Topic: Rotate body around a point
- Replies: 2
- Views: 2931
Re: Rotate body around a point
Trig is all very nice but the setAngle() function only takes one argument, the angle. How can I rotate a body around a point other than local 0,0? The only way i can see to do this is to destroy all the shapes on the body, recreate the shapes in the position that coresponds to where i want to rotate...
- Fri Jun 19, 2009 4:18 pm
- Forum: General
- Topic: Rotate body around a point
- Replies: 2
- Views: 2931
Rotate body around a point
Can i specify a point to rotate a body around in real time or can i only rotate it around its local 0,0 point?
- Tue May 26, 2009 4:08 pm
- Forum: General
- Topic: Make an object float up, like a balloon
- Replies: 7
- Views: 2675
Re: Make an object float up, like a balloon
Collisions seem fine so far with the way i'm using setVelocity. But i'll bear what you say in mind incase i come accross any issues. Thanks.
- Tue May 26, 2009 4:07 pm
- Forum: General
- Topic: Make an object float up, like a balloon
- Replies: 7
- Views: 2675
Re: Make an object float up, like a balloon
But gravity is an continuous and accumulative force, so things that are falling accelerate. So I need the velocity to increase continuously, thats why i'm adding or subtracting 10 to the y velocity each frame depending on weather it's a riser or a faller. Giving the force just once on load wont have...
- Tue May 26, 2009 3:18 pm
- Forum: General
- Topic: Make an object float up, like a balloon
- Replies: 7
- Views: 2675
Re: Make an object float up, like a balloon
Cheers robin,
this is what i've come up with. works good enough for me:
Inside the update function.
this is what i've come up with. works good enough for me:
Code: Select all
for i = 1, #bodies do
local x, y = bodies[i].body:getVelocity()
if bodies[i].fall then
bodies[i].body:setVelocity(x, y+10)
else
bodies[i].body:setVelocity(x, y-10)
end
end
- Tue May 26, 2009 2:47 pm
- Forum: General
- Topic: Make an object float up, like a balloon
- Replies: 7
- Views: 2675
Re: Make an object float up, like a balloon
That would be tricky, because i'd have to move any stationary platforms down with the view too.
I'm begining to think I might need to have zero gravity and accelerate the objects myself, some up, some down.
Does anyone know some love code for a psudo gravity function?
I'm begining to think I might need to have zero gravity and accelerate the objects myself, some up, some down.
Does anyone know some love code for a psudo gravity function?
- Tue May 26, 2009 2:28 pm
- Forum: General
- Topic: Make an object float up, like a balloon
- Replies: 7
- Views: 2675
Make an object float up, like a balloon
Hey everyone, In my world I want some objects to fall, but other objects to rise up. I've tried using negative mass on some objects, but they dont move at all if their mass is negative unfortunately. Another option would be to create two worlds, one with gravity set in the opposite direction to the ...
- Thu May 21, 2009 9:47 am
- Forum: General
- Topic: Number of Joystick Axes
- Replies: 6
- Views: 2259
Re: Number of Joystick Axes
Thanks bartbes. I've made something similar myself though.