Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Cylinder::Cylinder() : Object3D() {
- _size = 0.1_m;
- //PhysicalObjectDefinition cylinderDefinition;
- std::unique_ptr<PhysicalObjectDefinition> cylinderDefinition = std::make_unique<PhysicalObjectDefinition>();
- cylinderDefinition->setShapeCircle(_size);
- Object3D(cylinderDefinition, b2Vec2_zero, 42);
- }
- ////////////////////////////////////////////////////////////////////////////////
- Object3D(std::unique_ptr<PhysicalObjectDefinition> properties, b2Vec2 position, int id);
- ////////////////////////////////////////////////////////////////////////////////
- Object3D::Object3D(std::unique_ptr<PhysicalObjectDefinition> properties, b2Vec2 position, int id)
- {
- _physicProperties = std::make_unique<PhysicalObject>(properties, getSimuPhysicalWorld(),position);
- _ID = id;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement