Advertisement
Guest User

Untitled

a guest
Feb 11th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.79 KB | None | 0 0
  1. Cylinder::Cylinder() : Object3D() {
  2.     _size = 0.1_m;
  3.     //PhysicalObjectDefinition cylinderDefinition;
  4.     std::unique_ptr<PhysicalObjectDefinition> cylinderDefinition = std::make_unique<PhysicalObjectDefinition>();
  5.     cylinderDefinition->setShapeCircle(_size);
  6.     Object3D(cylinderDefinition, b2Vec2_zero, 42);
  7.  
  8. }
  9.  
  10. ////////////////////////////////////////////////////////////////////////////////
  11.  
  12. Object3D(std::unique_ptr<PhysicalObjectDefinition> properties, b2Vec2 position, int id);
  13.  
  14. ////////////////////////////////////////////////////////////////////////////////
  15.  
  16. Object3D::Object3D(std::unique_ptr<PhysicalObjectDefinition> properties, b2Vec2 position, int id)
  17. {
  18.     _physicProperties = std::make_unique<PhysicalObject>(properties, getSimuPhysicalWorld(),position);
  19.     _ID = id;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement