Navigation
API > API/Plugins > API/Plugins/NetworkPredictionExtras
| Name | FSpring |
| Type | struct |
| Header File | /Engine/Plugins/Runtime/NetworkPredictionExtras/Source/NetworkPredictionExtras/Public/Springs.h |
| Include Path | #include "Springs.h" |
Syntax
USTRUCT (BlueprintType )
struct FSpring
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FSpring() |
Springs.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| DampingStrength | float | Strength of damping term. | Springs.h |
|
| LocalDirection | FVector | Direction of spring force applied to body. | Springs.h |
|
| LocalPosition | FVector | Position of spring relative to actor, raycast starts here and force is applied at this position. | Springs.h |
|
| NaturalLength | float | Natural length of spring when it is not stretched/compressed. | Springs.h |
|
| RaycastLength | float | Lenght of raycast. | Springs.h |
|
| Stiffness | float | Strength of spring force. | Springs.h |
|
| TraceChannel | TEnumAsByte< ECollisionChannel > | Trace channel of raycast. | Springs.h |
|
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| PreviousLength | float | Length of spring from last step. | Springs.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
float GetPreviousLength() |
Springs.h | ||
void ResetState() |
Springs.h | ||
void SetPreviousLength
(
float InLength |
Springs.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool operator==
(
const FSpring& Spring |
Springs.h |