+
+
#include <body.h>
+
+
+
+
![](classyage_1_1Body.png)
+
+
+
+ |
+static const double | GRAVITY = -9.81 |
+ |
+
+
+
+
+
+
+
+
+
+
+ yage::Body::Body |
+ ( |
+ Vector2d |
+ position = Vector2d(0, 0) , |
+
+
+ |
+ |
+ double |
+ mass = 1 , |
+
+
+ |
+ |
+ Vector2d |
+ velocity = Vector2d(0, 0) , |
+
+
+ |
+ |
+ bool |
+ gravity = false |
+
+
+ |
+ ) |
+ | |
+
+
+ |
+
+protected |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ virtual void yage::Body::applyForce |
+ ( |
+ const Vector2d & |
+ force | ) |
+ |
+
+
+ |
+
+pure virtual |
+
+
+
+
+
+
+
+
+
+
+
+
+ virtual void yage::Body::update |
+ ( |
+ | ) |
+ |
+
+
+ |
+
+pure virtual |
+
+
+
+
+
+
+
+
+
+ double yage::Body::xPosition |
+ ( |
+ | ) |
+ const |
+
+
+
+
+
+
+
+
+
+
+
+ double yage::Body::yPosition |
+ ( |
+ | ) |
+ const |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ const double yage::Body::GRAVITY = -9.81 |
+
+
+ |
+
+static |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ bool yage::Body::gravity_ = true |
+
+
+ |
+
+protected |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ double yage::Body::mass_ = 1 |
+
+
+ |
+
+protected |
+
+
+
+
+
+
+
+
+
+
+
The documentation for this class was generated from the following files:
+