Engine²
Open-source game engine written in C++.
Loading...
Searching...
No Matches
VehicleScene.cpp File Reference
#include "scenes/VehicleScene.hpp"
#include "component/PlayerVehicle.hpp"
#include "Graphic.hpp"
#include "Object.hpp"
#include "Physics.hpp"
#include "builder/VehicleBuilder.hpp"
#include "component/Transform.hpp"
#include "component/VehicleController.hpp"
#include <glm/glm.hpp>
#include <iostream>

Functions

void CreateCheckeredFloor (Engine::Core &core)
 Create a checkered floor (200x200 meters) with alternating grey tiles.
Engine::Entity CreateVehicle (Engine::Core &core)
 Create a drivable vehicle using VehicleBuilder.

Function Documentation

◆ CreateCheckeredFloor()

void CreateCheckeredFloor ( Engine::Core & core)

Create a checkered floor (200x200 meters) with alternating grey tiles.

Uses a single large physics body to avoid ghost collisions at tile edges, while creating separate visual tiles for the checkered pattern.

◆ CreateVehicle()

Engine::Entity CreateVehicle ( Engine::Core & core)

Create a drivable vehicle using VehicleBuilder.