NAP
Public Attributes | List of all members
TransformProperties Struct Reference

#include <transformcomponent.h>

Public Attributes

glm::vec3 mTranslate = { 0.0f, 0.0f, 0.0f }
 Property: 'Translate' Position (x, y, z) More...
 
glm::vec3 mRotate = { 0.0f, 0.0f, 0.0f }
 Property: 'Rotation' Amount of rotation in degrees (yaw, pitch, roll) More...
 
glm::vec3 mScale = { 1.0f, 1.0f, 1.0f }
 Property: 'Scale' Axis scaling factor (x, y, z) More...
 
float mUniformScale = 1.0f
 Property: 'UniformScale' Uniform scaling factor. More...
 

Description

Struct to hold properties shared between Resource and Instance Note that the rotation is in euler angles (Pitch, Yaw, Roll) but after instantiation all rotate related functionality is performed using quaternions

Member Data Documentation

◆ mRotate

glm::vec3 mRotate = { 0.0f, 0.0f, 0.0f }

Property: 'Rotation' Amount of rotation in degrees (yaw, pitch, roll)

◆ mScale

glm::vec3 mScale = { 1.0f, 1.0f, 1.0f }

Property: 'Scale' Axis scaling factor (x, y, z)

◆ mTranslate

glm::vec3 mTranslate = { 0.0f, 0.0f, 0.0f }

Property: 'Translate' Position (x, y, z)

◆ mUniformScale

float mUniformScale = 1.0f

Property: 'UniformScale' Uniform scaling factor.