|
Vesper 0.5.1
Vesper is short form for the Latin word for "Bat", as Vesper is designed to be small, lightweight, and easily handle things like particles and flocking behaviors in accordance with the nature of bats. \n It is meant to be a particle simulation, VFX editor, and CAN be used secondarily as a small game engine. GitHub | Vesper Updates | Creator |
Component that holds the transform of an entity. More...
#include <Components.h>
Public Member Functions | |
| TransformComponent ()=default | |
| TransformComponent (const TransformComponent &)=default | |
| TransformComponent (const glm::vec3 &translation) | |
| Constructor that initializes the translation with a 3D vector. | |
| glm::mat4 | GetTransform () const |
| Calculates and returns the transformation matrix. | |
Public Attributes | |
| glm::vec3 | Translation = { 0.0f, 0.0f, 0.0f } |
| Translation (position) vector. | |
| glm::vec3 | Rotation = { 0.0f, 0.0f, 0.0f } |
| Rotation vector (in radians). | |
| glm::vec3 | Scale = { 1.0f, 1.0f, 1.0f } |
| Scale vector. | |
Component that holds the transform of an entity.
|
default |
|
default |
|
inline |
Constructor that initializes the translation with a 3D vector.
|
inline |
| glm::vec3 Vesper::TransformComponent::Rotation = { 0.0f, 0.0f, 0.0f } |
Rotation vector (in radians).
| glm::vec3 Vesper::TransformComponent::Scale = { 1.0f, 1.0f, 1.0f } |
Scale vector.
| glm::vec3 Vesper::TransformComponent::Translation = { 0.0f, 0.0f, 0.0f } |
Translation (position) vector.