From aa9cdee46fea21ad50b70a4513aa39aebe280b7f Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Thu, 27 Jul 2017 23:21:23 +0100 Subject: Adding initial docs --- classyage_1_1Body.html | 148 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 148 insertions(+) create mode 100644 classyage_1_1Body.html (limited to 'classyage_1_1Body.html') diff --git a/classyage_1_1Body.html b/classyage_1_1Body.html new file mode 100644 index 00000000..708f8a2d --- /dev/null +++ b/classyage_1_1Body.html @@ -0,0 +1,148 @@ + + + + + + + +YAGE: yage::Body Class Reference + + + + + + + + + +
+
+ + + + + + +
+
YAGE +
+
Yet Another Game Engine
+
+
+ + + + + + + + +
+
+ + +
+ +
+ + +
+
+ +
+
yage::Body Class Referenceabstract
+
+
+
+Inheritance diagram for yage::Body:
+
+
+ + +yage::CollisionBody +yage::ParticleBody +yage::RigidBody + +
+ + + + + + + + + + +

+Public Member Functions

+virtual void applyForce (const Vector2d &force)=0
 
+virtual void update ()=0
 
+double xPosition () const
 
+double yPosition () const
 
+ + + +

+Static Public Attributes

+static const double GRAVITY =-9.81
 
+ + + +

+Protected Member Functions

Body (const Vector2d &position=Vector2d(0, 0), double mass=1, const Vector2d &velocity=Vector2d(0, 0), bool gravity=false)
 
+ + + + + + + + + + + + + +

+Protected Attributes

+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)
 
+
The documentation for this class was generated from the following files: +
+ + + + -- cgit