Engine²
Open-source game engine written in C++.
Loading...
Searching...
No Matches
Object::Helper::CreateCylinderInfo Struct Reference

Struct to hold parameters for creating a cylinder. More...

#include <CreateShape.hpp>

Public Attributes

float radiusTop = 0.5f
float radiusBottom = 0.5f
 Radius at the top (default: 0.5).
float height = 1.0f
 Radius at the bottom (default: 0.5).
glm::vec3 position = glm::vec3(0.0f)
 Height of the cylinder (default: 1.0).
glm::quat rotation = glm::quat(1.0f, 0.0f, 0.0f, 0.0f)
 Position in world space (default: origin).
glm::vec3 scale = glm::vec3(1.0f)
 Rotation as quaternion (default: identity).
uint32_t segments = 32u
 Scale factor (default: 1.0).
uint32_t heightSegments = 1u
 Number of radial segments (default: 32).

Detailed Description

Struct to hold parameters for creating a cylinder.

Member Data Documentation

◆ height

float Object::Helper::CreateCylinderInfo::height = 1.0f

Radius at the bottom (default: 0.5).

◆ heightSegments

uint32_t Object::Helper::CreateCylinderInfo::heightSegments = 1u

Number of radial segments (default: 32).

◆ position

glm::vec3 Object::Helper::CreateCylinderInfo::position = glm::vec3(0.0f)

Height of the cylinder (default: 1.0).

◆ radiusBottom

float Object::Helper::CreateCylinderInfo::radiusBottom = 0.5f

Radius at the top (default: 0.5).

◆ radiusTop

float Object::Helper::CreateCylinderInfo::radiusTop = 0.5f

◆ rotation

glm::quat Object::Helper::CreateCylinderInfo::rotation = glm::quat(1.0f, 0.0f, 0.0f, 0.0f)

Position in world space (default: origin).

◆ scale

glm::vec3 Object::Helper::CreateCylinderInfo::scale = glm::vec3(1.0f)

Rotation as quaternion (default: identity).

◆ segments

uint32_t Object::Helper::CreateCylinderInfo::segments = 32u

Scale factor (default: 1.0).


The documentation for this struct was generated from the following file: