3#include "EntityDefinition.h"
5#include "Foundation/ComponentModel/Component.h"
16 static void registerType();
25 static void registerType();
31 static void registerType();
34 glm::vec3 targetAnchor;
36 glm::vec3 axis = glm::vec3(0, 0, 1);
37 glm::vec3 targetAxis = glm::vec3(0, 0, 1);
43 static void registerType();
46 glm::vec3 targetAnchor;
48 float stiffness = 10.0f;
55 static void registerType();
58 glm::vec3 targetAnchor;
63template<>
inline Cogs::StringView getName<Cogs::Core::ConstraintComponent>() {
return "ConstraintComponent"; }
64template<>
inline Cogs::StringView getName<Cogs::Core::FixedConstraintComponent>() {
return "FixedConstraintComponent"; }
65template<>
inline Cogs::StringView getName<Cogs::Core::HingeConstraintComponent>() {
return "HingeConstraintComponent"; }
66template<>
inline Cogs::StringView getName<Cogs::Core::SpringConstraintComponent>() {
return "SpringConstraintComponent"; }
67template<>
inline Cogs::StringView getName<Cogs::Core::GenericConstraintComponent>() {
return "GenericConstraintComponent"; }
Base class for Component instances.
EntityPtr target
Target entity. Constraint is created between owner of this component and target.
Provides a weakly referenced view over the contents of a string.
std::shared_ptr< ComponentModel::Entity > EntityPtr
Smart pointer for Entity access.
Contains all Cogs related functionality.