Java com.badlogic.gdx.physics.box2d PolygonShape fields, constructors, methods, implement or subclass

Example usage for Java com.badlogic.gdx.physics.box2d PolygonShape fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.badlogic.gdx.physics.box2d PolygonShape.

The text is from its open source code.

Constructor

PolygonShape()
Constructs a new polygon

Method

voidgetVertex(int index, Vector2 vertex)
Returns the vertex at the given position.
intgetVertexCount()
voidset(Vector2[] vertices)
Copy vertices.
voidset(float[] vertices)
Copy vertices from the given float array.
voidsetAsBox(float hx, float hy)
Build vertices to represent an axis-aligned box.
voidsetAsBox(float hx, float hy, Vector2 center, float angle)
Build vertices to represent an oriented box.
voidsetRadius(float radius)