Physics

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.
Post Reply
Scriptoar
Prole
Posts: 13
Joined: Sun May 08, 2011 8:49 am

Physics

Post by Scriptoar »

Can someone explain to me that co-ordinates of these?


world = love.physics.newWorld(-650, -650, 650, 650)

What do "(-650, -650, 650, 650)" these represent?
moar tacos = better life

u liek?
User avatar
BlackBulletIV
Inner party member
Posts: 1261
Joined: Wed Dec 29, 2010 8:19 pm
Location: Queensland, Australia
Contact:

Re: Physics

Post by BlackBulletIV »

The wiki has all the API functions documented, check there in future. This page is what you're looking for.

Also, use the [ code ] tag for code examples in your posts.
User avatar
ivan
Party member
Posts: 1915
Joined: Fri Mar 07, 2008 1:39 pm
Contact:

Re: Physics

Post by ivan »

Scriptoar wrote:Can someone explain to me that co-ordinates of these?


world = love.physics.newWorld(-650, -650, 650, 650)
The 4 coords represent the min/max bounds of the box2d world:
left, top, right and bottom
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Physics

Post by bartbes »

They're only two coordinates though, top-left and bottom-right.
Post Reply

Who is online

Users browsing this forum: Google [Bot], Semrush [Bot] and 3 guests