where can I learn about Polygons

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
kingslovelua
Citizen
Posts: 71
Joined: Mon Sep 26, 2011 7:16 pm

where can I learn about Polygons

Post by kingslovelua »

Hello I'm searching the internet on how to create polygons, but can't find anything good. I want to learn how to do this for the shape = love.physics.newPolygonShape( x1, y1, x2, y2, x3, y3, ... ) in the love2d Documentation. so does anyone know any good website on polygon creations/ tutorial.
User avatar
Ensayia
Party member
Posts: 399
Joined: Sat Jun 12, 2010 7:57 pm

Re: where can I learn about Polygons

Post by Ensayia »

Are you looking to create just a visual polygon shape or a complete physics object?

If you just want to render the shape you need http://www.love2d.org/wiki/love.graphics.polygon.

If you're looking for an object with physics, you'll have to learn a bit about how Box2D works.
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 7 guests