Not logged in
A
Developer
Download
Support
Blog
Showcase
Get started
Demos & Samples
Videos
Tutorials
Documents
API
Forum
FAQ
Developer
API
Game Development
Box2D
Native
b2PolygonShape
Config
(0)
Properties
(0)
Methods
(1)
fromRect(width, height[, center[, angle]])
Events
(0)
b2PolygonShape
(native)
A convex polygon. It is assumed that the interior of the polygon is to the left of each edge.
Methods
fromRect(width, height[, center[, angle]]) :
b2PolygonShape
Create new rectangle shape acording to the parameters.
API Navigation
User Interface
Core & System
Graphics
Files and Databases
Crypto
Native User Interface
Net
Media
Sensor
Game Development
Box2D
Native
b2World
b2Body
b2Contact
b2CircleShape
b2PolygonShape
b2DistanceJoint
b2FrictionJoint
b2GearJoint
b2MouseJoint
b2PrismaticJoint
b2PulleyJoint
b2RevoluteJoint
b2WeldJoint
PhysicsWorld
PhysicsBody
PhysicsContact
PhisicsScene
PhisicsSprite
Animation
Game2D
Particle System
Scene Transition
Game
Canvas
Bitmap
Paint