Convex polygon shape. More...
#include <polyshape.hpp>
Public Member Functions | |
PolyShape (std::shared_ptr< Body >, const std::vector< Vect > &verts, Vect offset=Vect()) | |
int | getNumVerts () const |
cp::Vect | getVert (int) |
Public Member Functions inherited from cp::Shape | |
operator cpShape * () const | |
bool | pointQuery (Vect) const |
bool | segmentQuery (Vect a, Vect b, SegmentQueryInfo *=nullptr) |
void | setFriction (Float) |
void | setElasticity (Float) |
void | setGroup (Group) |
void | setCollisionType (CollisionType) |
CollisionType | getCollisionType () const |
void | setLayers (Layers) |
void | setOwning (bool) |
void | setUserData (DataPointer) |
void | setBody (std::shared_ptr< Body > body) |
DataPointer | getUserData () const |
Additional Inherited Members | |
Protected Member Functions inherited from cp::Shape | |
Shape (cpShape *, std::shared_ptr< Body >) | |
Protected Attributes inherited from cp::Shape | |
cpShape * | shape |
Convex polygon shape.