Advertisement
Guest User

Untitled

a guest
Nov 27th, 2014
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. class rigidBody3D {
  2. public:
  3. void setPosition(float x, float y, float z);
  4. rigidBody* rb;
  5. };
  6.  
  7. class box3D : public rigidBody3D {
  8. public:
  9. box3D(float w float h, float l);
  10. ..other box functions..
  11. };
  12.  
  13. class rigidBody2D {
  14. public:
  15. rigidBody2D();
  16. void setPosition(float x, float y);
  17. rigidBody3D body;
  18. };
  19.  
  20. class box2D : public rigidBody2D {
  21. public:
  22. box2D(float w, float h);
  23. box3D box;
  24. };
  25.  
  26. void rigidBody2D::setPosition(float x, float y)
  27. {
  28. body.setPosition(x,y,0);
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement