Documentation
Introduction
Getting Started
Game Distribution
Config Files
License
Documentation Guide
Modules
love
love.audio
love.event
love.filesystem
love.graphics
love.image
love.joystick
love.keyboard
love.mouse
love.physics
love.sound
love.timer
Callbacks
love.joystickreleased
love.joystickpressed
love.load
love.update
love.draw
love.keypressed
love.keyreleased
love.mousepressed
love.mousereleased
love.run
Edit
Function
love.physics.newPolygonShape( body, ... )
Creates a new PolygonShape.
This shape can have 8 vertices at most, and must form a convex shape.
Synopsis
shape = love.physics.newPolygonShape( body, ... )
Parameters
body
Body
The body to attach the shape to.
...
numbers
Vertices of the polygon.
Returns
shape
PolygonShape
A new
PolygonShape
.
Copyright © 2006-2010 LÖVE Development Team.
Visit Homepage
–
Ask a Question