Header <GameFramework/SpringArmComponent.h>
#include "GameFramework/SpringArmComponent.h"Includes 4
<CoreMinimal.h> |
<UObject/ObjectMacros.h> |
<Engine/EngineTypes.h> |
<Components/SceneComponent.h> |
Contents
USpringArmComponent | This component tries to maintain its children at a fixed distance from the parent, but will retract the children if there is a collision, and spring back when there is no collision. (uclass class : USceneComponent) |
class USpringArmComponent
class USpringArmComponent : public USceneComponentUCLASSClassGroup=CamerahideCategories=(Mobility)MinimalAPIThis component tries to maintain its children at a fixed distance from the parent, but will retract the children if there is a collision, and spring back when there is no collision.
Member functions 13
| GetTargetRotation | FRotator GetTargetRotation() const;UFUNCTIONBlueprintCallableCategory=SpringArmGet the target rotation we inherit, used as the base target for the boom rotation. This is derived from attachment to our parent and considering the UsePawnControlRotation and absolute rotation flags. |
| GetUnfixedCameraPosition | FVector GetUnfixedCameraPosition() const;UFUNCTIONBlueprintCallableCategory=CameraCollisionGet the position where the camera should be without applying the Collision Test displacement |
| IsCollisionFixApplied | bool IsCollisionFixApplied() const;UFUNCTIONBlueprintCallableCategory=CameraCollisionIs the Collision Test displacement being applied? |
| OnRegister | virtual void OnRegister() override;UActorComponent interface |
| TickComponent | virtual void TickComponent(float DeltaTime, enum ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) override; |
| PostLoad | virtual void PostLoad() override; |
| ApplyWorldOffset | virtual void ApplyWorldOffset(const FVector& InOffset, bool bWorldShift) override; |
| HasAnySockets | virtual bool HasAnySockets() const override;End of UActorComponent interface USceneComponent interface |
| GetSocketTransform | virtual FTransform GetSocketTransform(FName InSocketName, ERelativeTransformSpace TransformSpace = RTS_World) const override; |
| QuerySupportedSockets | virtual void QuerySupportedSockets(TArray<FComponentSocketDescription>& OutSockets) const override; |
| GetDesiredRotation | virtual FRotator GetDesiredRotation() const;Returns the desired rotation for the spring arm, before the rotation constraints such as bInheritPitch etc are enforced. |
| UpdateDesiredArmLocation | virtual void UpdateDesiredArmLocation(bool bDoTrace, bool bDoLocationLag, bool bDoRotationLag, float DeltaTime);protectedUpdates the desired arm location, calling BlendLocations to do the actual blending if a trace is done |
| BlendLocations | virtual FVector BlendLocations(const FVector& DesiredArmLocation, const FVector& TraceHitLocation, bool bHitSomething, float DeltaTime);protectedThis function allows subclasses to blend the trace hit location with the desired arm location; by default it returns bHitSomething ? TraceHitLocation : DesiredArmLocation |