Request: Physic configuration template for different objects

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
User avatar
weilies
Prole
Posts: 28
Joined: Sat Oct 09, 2010 6:16 am

Request: Physic configuration template for different objects

Post by weilies »

Understood thot love2D is using Box2D as physic engine.
i wonder is there any available configuration through the net if anyone aware

Eg. the world is having gravity 9.8F, and if an empty box with 500gram, it will fall down and thouch the floor in 3 secs from 2 meter height
i believe this all might need a lots of trial-and-error before come out a realistic figure
instead of specify the m parameter, mass as 200, gravity as 500 etc, i would rather to check if there any available "planet vs box", "planet vs ballon" simulation so that everyone can reuse it and streamline the development time

Let me know if you guys know any resouces out there

Thanks!
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Request: Physic configuration template for different obj

Post by Robin »

Correct me if I'm wrong, but I thought gravity is specified in Newton and mass in KG anyway. :)
Help us help you: attach a .love.
User avatar
weilies
Prole
Posts: 28
Joined: Sat Oct 09, 2010 6:16 am

Re: Request: Physic configuration template for different obj

Post by weilies »

Robin wrote:Correct me if I'm wrong, but I thought gravity is specified in Newton and mass in KG anyway. :)
Erm... i have throw back the knowledge to my physic teacher.
But if i am going to apply physic to my game, i really need to catch up my physic and maths

more important is, i would like to know any available resource on Box2D setup on simulate our gravity.

Thanks~
User avatar
zac352
Party member
Posts: 496
Joined: Sat Aug 28, 2010 8:13 pm
Location: In your head.
Contact:

Re: Request: Physic configuration template for different obj

Post by zac352 »

9.8F? The temperature for the (stupid and overcomplicated) customary system? What?
Gravity is ~9.81 m/s
Hello, I am not dead.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Request: Physic configuration template for different obj

Post by Robin »

zac352 wrote:9.8F? The temperature for the (stupid and overcomplicated) customary system? What?
Gravity is ~9.81 m/s
Not quite. Gravity (on earth's surface) is about 9.8 N (or kg×m/s²), depending on your exact location. I assumed weilies meant F = 9.8 N.
Help us help you: attach a .love.
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Request: Physic configuration template for different obj

Post by bartbes »

zac352 wrote: Gravity is ~9.81 m/s
m/s².
User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

Re: Request: Physic configuration template for different obj

Post by kikito »

I believe there are no 'kgs' on gravity.

Even if it's called 'a force', it is usually represented as an acceleration (so it should be measured in m/s²).

If you want to a force, in newtons, then you must call it weight, not gravity.

But I'm nearly as bad in physics as I am on maths, so I could be wrong.
When I write def I mean function.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Request: Physic configuration template for different obj

Post by Robin »

You're right, I mixed up some things.

F = G × m(earth × m(object) / r²
and
F = m × a
so
a = G × m(earth) / r²
and on the surface of earth, r remains almost the same, so you can calculate a, which turns out to be around 9.81 m/s², depending on your exact location (as I said before).

The F I was talking about isn't 9.81 N, it's 9.81 N for every kilogram.
Help us help you: attach a .love.
User avatar
weilies
Prole
Posts: 28
Joined: Sat Oct 09, 2010 6:16 am

Re: Request: Physic configuration template for different obj

Post by weilies »

Sorry guys,

i dont mean to open a physic class here but to enquire any available, i mean tested planet simulation
So that a 500g basket ball can bounce like it suppose to be, a 3kg stone will not bounce, and a 1kg wooden box can bounce but not as high as the basket ball
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: Request: Physic configuration template for different obj

Post by Robin »

Oh, no. Not as far as I know. But it shouldn't be to hard to figure it out yourself. ;)
Help us help you: attach a .love.
Post Reply

Who is online

Users browsing this forum: Amazon [Bot] and 1 guest