Navigation
API > API/Runtime > API/Runtime/ChaosVehiclesCore > API/Runtime/ChaosVehiclesCore/SimModule
References
| Module | ChaosVehiclesCore |
| Header | /Engine/Source/Runtime/Experimental/ChaosVehicles/ChaosVehiclesCore/Public/SimModule/ModuleInput.h |
| Include | #include "SimModule/ModuleInput.h" |
Syntax
USTRUCT (BlueprintType )
struct FModuleInputValue
Variables
| Type | Name | Description | |
|---|---|---|---|
| FVector | Value | ||
| EModuleInputValueType | ValueType |
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Support all relevant default constructors (FModuleInputValue isn't movable) | |||
FModuleInputValue
(
const FModuleInputValue& |
|||
FModuleInputValue
(
bool bInValue |
Specialized constructors for supported types Converting a value to a different type (e.g. Val = FVector(1, 1, 1); Val = true;) zeroes out any unused components to ensure getters continue to function correctly. | ||
FModuleInputValue
(
MAxis1D InValue |
|||
FModuleInputValue
(
MAxis2D InValue |
|||
FModuleInputValue
(
MAxis3D InValue |
|||
FModuleInputValue
(
EModuleInputValueType InValueType, |
Build a specific type with an arbitrary Axis3D value. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FModuleInputValue | Clamp
(
const FModuleInputValue& InValue, |
||
| FModuleInputValue & | ConvertToType
(
const FModuleInputValue& Other |
||
| FModuleInputValue & | ConvertToType
(
EModuleInputValueType Type |
In-place type conversion. | |
| FModuleInputValue::MAxis1D | Get () |
||
| bool | Get () |
Supported getter specializations. | |
| T | Get () |
||
| FModuleInputValue::MAxis2D | Get () |
||
| FModuleInputValue::MAxis3D | Get () |
||
| float | GetMagnitude () |
||
| float | |||
| EModuleInputValueType | GetValueType () |
||
| bool | IsNonZero
(
float Tolerance |
||
| void | Lerp
(
const FModuleInputValue& Min, |
||
| void | Merge
(
const FModuleInputValue& From |
||
| void | Reset () |
Resets Value without affecting ValueType. | |
| FModuleInputValue | |||
| void | Serialize
(
FArchive& Ar, |
Serialize values. | |
| void | SetMagnitude
(
float NewSize |
||
| FString | ToString () |
Type sensitive debug stringify. |
Operators
| Type | Name | Description | |
|---|---|---|---|
| FModuleInputValue & | operator*=
(
float Scalar |
Scalar operators. | |
| float | operator[]
(
int32 Index |
Read only index based value accessor, doesn't care about type. Expect 0 when accessing unused components. | |
| FModuleInputValue & | operator+=
(
const FModuleInputValue& Rhs |
||
| FModuleInputValue & | operator=
(
const FModuleInputValue& |
||
| FModuleInputValue & | operator-=
(
const FModuleInputValue& Rhs |