Cogs.Core
RiserFlexJointComponent.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 bool reverse = false;
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 flexOuterRadius = 1.3f;
26 float flexInnerRadius = 1.1f;
27
28 float flexStart = 1.5f;
29 float flexLength = 1.0f;
30
31 float startDepth = 0.0f;
32 float endDepth = 100.0f;
33
34 static void registerType();
35
36 void initialize(Context * context);
37 void update();
38 };
39 }
40}
41
42template<> inline Cogs::StringView getName<Cogs::Core::RiserFlexJointComponent>() { return "RiserFlexJointComponent"; }
void setChanged()
Sets the component to the ComponentFlags::Changed state with carry.
Definition: Component.h:202
A Context instance contains all the services, systems and runtime components needed to use Cogs.
Definition: Context.h:83
Base class for components implementing dynamic behavior.
float flexStart
Offset of the start of the flex from the start depth.
float endDepth
End depth along trajectory.
float flexInnerRadius
Inner radius of the flex bulge.
float connectorLength
Radius of the connectors.
float connectorRadius
Length of the connectors.
float flexOuterRadius
Outer radius of the flex bulge.
bool reverse
If the shape should be reversed.
float startDepth
Start depth along trajectory.
float flexLength
Length of the flex section.
float innerRadius
Inner radius of the joint.
float outerRadius
Outer radius of the joint.
Provides a weakly referenced view over the contents of a string.
Definition: StringView.h:24
Contains all Cogs related functionality.
Definition: FieldSetter.h:23