Cogs.Core
RiserJointComponent.h
1#include "Components/Core/DynamicComponent.h"
2
3namespace Cogs
4{
5 namespace Core
6 {
7 class Context;
8
10 {
11 public:
13 {
14 this->setChanged();
15 }
16
17 void update();
18
19 float connectorRadius = 1.2f;
20 float connectorLength = 1.0f;
21
22 float innerRadius = 0.8f;
23 float outerRadius = 1.0f;
24
25 float startDepth = 0.0f;
26 float endDepth = 100.0f;
27
28 static void registerType();
29 };
30 }
31}
32
33template<> inline Cogs::StringView getName<Cogs::Core::RiserJointComponent>() { return "RiserJointComponent"; }
void setChanged()
Sets the component to the ComponentFlags::Changed state with carry.
Definition: Component.h:202
Base class for components implementing dynamic behavior.
float connectorLength
Radius of the connectors.
float startDepth
Start depth along trajectory.
float innerRadius
Inner radius of the joint.
float outerRadius
Outer radius of the joint.
float endDepth
End depth along trajectory.
float connectorRadius
Length of the connectors.
Provides a weakly referenced view over the contents of a string.
Definition: StringView.h:24
Contains all Cogs related functionality.
Definition: FieldSetter.h:23