From c7dad1e929c0101386fbcdaa194e402d68f74752 Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Wed, 23 Aug 2017 22:56:53 +0100 Subject: Updating docs --- classyage_1_1ParticleBody.html | 253 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 253 insertions(+) create mode 100644 classyage_1_1ParticleBody.html (limited to 'classyage_1_1ParticleBody.html') diff --git a/classyage_1_1ParticleBody.html b/classyage_1_1ParticleBody.html new file mode 100644 index 00000000..8f3b1235 --- /dev/null +++ b/classyage_1_1ParticleBody.html @@ -0,0 +1,253 @@ + + + + + + + +YAGE: yage::ParticleBody Class Reference + + + + + + + + + + + + + + +
+
+ + + + + + +
+
YAGE +  0.02 +
+
Yet Another Game Engine
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
yage::ParticleBody Class Reference
+
+
+ +

#include <particlebody.hpp>

+
+Inheritance diagram for yage::ParticleBody:
+
+
+ + +yage::Body +yage::RigidBody + +
+ + + + + + + + + + + + + +

+Public Member Functions

 ParticleBody (const Vector2d &position=Vector2d(0, 0), double mass=1, const Vector2d &velocity=Vector2d(0, 0), bool gravity=true)
 
void applyForce (const Vector2d &force) override override
 
void update () override override
 
- Public Member Functions inherited from yage::Body
double xPosition () const
 
double yPosition () const
 
+ + + + + + + + + + + + + + + + + + + + +

+Additional Inherited Members

- Static Public Attributes inherited from yage::Body
static const double GRAVITY = -9.81
 
- Protected Member Functions inherited from yage::Body
 Body (Vector2d position=Vector2d(0, 0), double mass=1, Vector2d velocity=Vector2d(0, 0), bool gravity=false)
 
- Protected Attributes inherited from yage::Body
Vector2d position_ = Vector2d(0, 0)
 
double mass_ = 1
 
Vector2d velocity_ = Vector2d(0, 0)
 
bool gravity_ = true
 
Vector2d acceleration_ = Vector2d(0, 0)
 
Vector2d force_ = Vector2d(0, 0)
 
+

Constructor & Destructor Documentation

+ +

◆ ParticleBody()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
yage::ParticleBody::ParticleBody (const Vector2dposition = Vector2d(0, 0),
double mass = 1,
const Vector2dvelocity = Vector2d(0, 0),
bool gravity = true 
)
+
+ +
+
+

Member Function Documentation

+ +

◆ applyForce()

+ +
+
+ + + + + +
+ + + + + + + + +
void yage::ParticleBody::applyForce (const Vector2dforce)
+
+overridevirtual
+
+ +

Implements yage::Body.

+ +
+
+ +

◆ update()

+ +
+
+ + + + + +
+ + + + + + + +
void yage::ParticleBody::update ()
+
+overridevirtual
+
+ +

Implements yage::Body.

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