1#include "Components/Core/DynamicComponent.h"
4#include <glm/gtc/quaternion.hpp>
36 glm::vec3
offset = glm::vec3(0, 0, 0);
41 static void registerType();
46template<>
inline Cogs::StringView getName<Cogs::Core::TrajectoryAlignedComponent>() {
return "TrajectoryAlignedComponent"; }
Base class for components implementing dynamic behavior.
Aligns the entity along a trajectory at a specified depth.
glm::vec3 offset
Offset to move the entity from the sampled trajectory position.
float depth
The depth along the trajectory to position the shape at.
glm::quat rotation
Rotation around the objects local axes.
std::shared_ptr< ComponentModel::Entity > trajectory
Target trajectory along which to align.
Provides a weakly referenced view over the contents of a string.
Contains all Cogs related functionality.