Untitled Game engine no.5  1.0
Public Member Functions | Public Attributes | List of all members
Engine::Transform Struct Reference

Location, orientation, and scale of an entity. More...

#include <Components.hpp>

Public Member Functions

 Transform (glm::vec3 p, glm::vec3 r, glm::vec3 s)
 
 Transform (const Transform &)=default
 Copy constructor.
 
 Transform ()=default
 
glm::mat4 GetMatrix () const
 extract a matrix from three vectors
 

Public Attributes

glm::vec3 position = {0.f, 0.f, 0.f}
 Position of entity.
 
glm::qua< float > rotation = {1.f, 0.f, 0.f, 0.f}
 Rotation of entity in degrees.
 
glm::vec3 scale = {1.f, 1.f, 1.f}
 Scale of enetity.
 

Detailed Description

Location, orientation, and scale of an entity.

Constructor & Destructor Documentation

◆ Transform() [1/2]

Engine::Transform::Transform ( glm::vec3  p,
glm::vec3  r,
glm::vec3  s 
)
inline

Creates a new transform

Parameters
pposition vector
rrotation vector
sscale vector

◆ Transform() [2/2]

Engine::Transform::Transform ( )
default

Default constructor Initializes rotation and position to 0 and scale to 1


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