VEX Engine
Retro looking game engine made in vulkan mostly because i wanted to understand it better.
Loading...
Searching...
No Matches
vex::TweenComponent Struct Reference

Smoothly interpolates an entity's local position over time. More...

#include <UtilityComponents.hpp>

Public Attributes

glm::vec3 targetLocalOffset = {0.0f, 5.0f, 0.0f}
float duration = 2.0f
bool pingPong = true
float timeElapsed = 0.0f
glm::vec3 startPosition = {0.0f, 0.0f, 0.0f}
bool initialized = false
bool returning = false

Detailed Description

Smoothly interpolates an entity's local position over time.

Definition at line 30 of file UtilityComponents.hpp.

Member Data Documentation

◆ duration

float vex::TweenComponent::duration = 2.0f

Definition at line 32 of file UtilityComponents.hpp.

◆ initialized

bool vex::TweenComponent::initialized = false

Definition at line 38 of file UtilityComponents.hpp.

◆ pingPong

bool vex::TweenComponent::pingPong = true

Definition at line 33 of file UtilityComponents.hpp.

◆ returning

bool vex::TweenComponent::returning = false

Definition at line 39 of file UtilityComponents.hpp.

◆ startPosition

glm::vec3 vex::TweenComponent::startPosition = {0.0f, 0.0f, 0.0f}

Definition at line 37 of file UtilityComponents.hpp.

◆ targetLocalOffset

glm::vec3 vex::TweenComponent::targetLocalOffset = {0.0f, 5.0f, 0.0f}

Definition at line 31 of file UtilityComponents.hpp.

◆ timeElapsed

float vex::TweenComponent::timeElapsed = 0.0f

Definition at line 36 of file UtilityComponents.hpp.


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