Engine²
Open-source game engine written in C++.
Loading...
Searching...
No Matches
CapsuleGenerator.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "component/Mesh.hpp"
4#include <cstdint>
5#include <glm/glm.hpp>
6
7namespace Object::Utils {
8
18Component::Mesh GenerateCapsuleMesh(float radius = 0.5f, float height = 1.0f, uint32_t segments = 32u,
19 uint32_t heightSegments = 4u);
20
21} // namespace Object::Utils
Definition BoxGenerator.cpp:4
Component::Mesh GenerateCapsuleMesh(float radius, float height, uint32_t segments, uint32_t heightSegments)
Generate a capsule mesh with given radius and cylinder height.
Definition CapsuleGenerator.cpp:6