Chipmunk++
 All Classes Functions Variables Pages
Classes | Public Member Functions | Public Attributes
cp::Space Class Reference

Basic unit of simulation. More...

#include <space.hpp>

List of all members.

Classes

struct  SegmentQueryData

Public Member Functions

 operator cpSpace * ()
void add (std::shared_ptr< Shape >)
void add (std::shared_ptr< Body >)
void remove (std::shared_ptr< Shape >)
void remove (std::shared_ptr< Body >)
Vect getGravity () const
void setGravity (const Vect &)
void step (Float)
void segmentQuery (Vect a, Vect b, Layers, Group, SegmentQueryFunc) const
std::shared_ptr< ShapesegmentQueryFirst (Vect a, Vect b, Layers, Group, SegmentQueryInfo *=nullptr) const
std::shared_ptr< ShapepointQueryFirst (Vect p, Layers, Group) const

Public Attributes

std::shared_ptr< BodystaticBody

Detailed Description

Basic unit of simulation.


Member Function Documentation

Vect cp::Space::getGravity ( ) const

Global gravity applied to the space. Defaults to cp::Vect(0, 0). Can be overridden on a per body basis by writing custom integration functions.


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