Physics4K  2013-06-04
Physics4K is the next great evolution in 2D physics engines. built upon the C++ Game Framework, it is going to take the next generation gaming world by storm.
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
Box.h
Go to the documentation of this file.
1 // Filename: Box.h
4 
5 //Preprocessor directive designed to cause the current source file to be included only once in a single compilation
6 #pragma once
7 
8 //Includes
9 #include "PKInclude.h"
10 #include "Vector2f.h"
11 #include <float.h>
12 #include "Shape.h"
13 
14 namespace PK
15 {
16  class PK_API Box : public Shape
17  {
18  friend class World;
19 
20  public:
21  Box(float xPos, float yPos, float width, float height, float rotation, float mass);
22  Box(float xPos, float yPos, float width, float height, float rotation, float mass, float friction);
23  ~Box();
24 
25  void Initialize(float xPos, float yPos, float width, float height, float rotation, float mass, float friction = 0.2f);
26 
27  Vector2f GetDimensions();
28 
29  public:
30  float Width;
31  float Height;
32  };
33 }