Genetic generation of cars in a 2D environment
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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
 
 

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;
};