Cogs.Core
MotionComponent.h
1#pragma once
2
3#include "Components/Core/DynamicComponent.h"
4
5#include <glm/vec3.hpp>
6
7namespace Cogs::Core
8{
13 {
15 static void registerType();
16
18 glm::vec3 velocity = { 0, 0, 0 };
19
21 glm::vec3 angularVelocity = { 0, 0, 0 };
22 };
23}
24
25template<> inline Cogs::StringView getName<Cogs::Core::MotionComponent>() { return "MotionComponent"; }
Base class for components implementing dynamic behavior.
Provides a weakly referenced view over the contents of a string.
Definition: StringView.h:24
Contains the Engine, Renderer, resource managers and other systems needed to run Cogs....
Contains motion data.
static void registerType()
Register the type in the type system.
glm::vec3 angularVelocity
Angular velocity.
glm::vec3 velocity
Linear velocity.