Download LyraStarterGame/Source/LyraGame/Camera/LyraPenetrationAvoidanceFeeler.h from Alexhas2/unitysamples: direct link, hf CLI and curl.
- Browser
- Download file 1.95 kB
-
https://huggingface.co/datasets/Alexhas2/unitysamples/resolve/main/LyraStarterGame/Source/LyraGame/Camera/LyraPenetrationAvoidanceFeeler.h
- Command line
-
hf download hf://datasets/Alexhas2/unitysamples/LyraStarterGame/Source/LyraGame/Camera/LyraPenetrationAvoidanceFeeler.h
-
curl -L -o LyraPenetrationAvoidanceFeeler.h https://huggingface.co/datasets/Alexhas2/unitysamples/resolve/main/LyraStarterGame/Source/LyraGame/Camera/LyraPenetrationAvoidanceFeeler.h
1.95 kB
| // Copyright Epic Games, Inc. All Rights Reserved. | |
| /** | |
| * Struct defining a feeler ray used for camera penetration avoidance. | |
| */ | |
| USTRUCT() | |
| struct FLyraPenetrationAvoidanceFeeler | |
| { | |
| GENERATED_BODY() | |
| /** FRotator describing deviance from main ray */ | |
| UPROPERTY(EditAnywhere, Category=PenetrationAvoidanceFeeler) | |
| FRotator AdjustmentRot; | |
| /** how much this feeler affects the final position if it hits the world */ | |
| UPROPERTY(EditAnywhere, Category=PenetrationAvoidanceFeeler) | |
| float WorldWeight; | |
| /** how much this feeler affects the final position if it hits a APawn (setting to 0 will not attempt to collide with pawns at all) */ | |
| UPROPERTY(EditAnywhere, Category=PenetrationAvoidanceFeeler) | |
| float PawnWeight; | |
| /** extent to use for collision when tracing this feeler */ | |
| UPROPERTY(EditAnywhere, Category=PenetrationAvoidanceFeeler) | |
| float Extent; | |
| /** minimum frame interval between traces with this feeler if nothing was hit last frame */ | |
| UPROPERTY(EditAnywhere, Category=PenetrationAvoidanceFeeler) | |
| int32 TraceInterval; | |
| /** number of frames since this feeler was used */ | |
| UPROPERTY(transient) | |
| int32 FramesUntilNextTrace; | |
| FLyraPenetrationAvoidanceFeeler() | |
| : AdjustmentRot(ForceInit) | |
| , WorldWeight(0) | |
| , PawnWeight(0) | |
| , Extent(0) | |
| , TraceInterval(0) | |
| , FramesUntilNextTrace(0) | |
| { | |
| } | |
| FLyraPenetrationAvoidanceFeeler(const FRotator& InAdjustmentRot, | |
| const float& InWorldWeight, | |
| const float& InPawnWeight, | |
| const float& InExtent, | |
| const int32& InTraceInterval = 0, | |
| const int32& InFramesUntilNextTrace = 0) | |
| : AdjustmentRot(InAdjustmentRot) | |
| , WorldWeight(InWorldWeight) | |
| , PawnWeight(InPawnWeight) | |
| , Extent(InExtent) | |
| , TraceInterval(InTraceInterval) | |
| , FramesUntilNextTrace(InFramesUntilNextTrace) | |
| { | |
| } | |
| }; |