Chipmunk++
 All Classes Functions Variables Pages
Public Member Functions
cp::PolyShape Class Reference

Convex polygon shape. More...

#include <polyshape.hpp>

Inheritance diagram for cp::PolyShape:
cp::Shape

List of all members.

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

Detailed Description

Convex polygon shape.


The documentation for this class was generated from the following files: