You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
378 B
26 lines
378 B
//
|
|
// Car.h
|
|
// OSXGLEssentials
|
|
//
|
|
// Created by Joshua Moerman on 10/03/14.
|
|
//
|
|
//
|
|
|
|
#pragma once
|
|
|
|
#include <Box2D/Box2D.h>
|
|
#include <vector>
|
|
|
|
struct Car {
|
|
Car(b2World & world);
|
|
Car(Car&& c);
|
|
Car(Car const & c) = delete;
|
|
~Car();
|
|
|
|
b2Vec2 getPosition() const;
|
|
|
|
private:
|
|
b2World & world;
|
|
b2Body * body = nullptr;
|
|
std::vector<b2Body*> parts;
|
|
};
|
|
|