LEAP Documentation 40220
Documentation for the LEAP project
APickup Class Reference

#include <Pickup.h>

Inheritance diagram for APickup:

Public Member Functions

 APickup ()
 
virtual void BeginPlay () override
 
int32 GetPickupID () const
 
void SetPickupInfo (int32 InPickupID, FVector InExpectedTargetLocation)
 
void OnComponentBeginOverlap (UPrimitiveComponent *OverlappedComponent, AActor *OtherActor, UPrimitiveComponent *OtherComp, int32 OtherBodyIndex, bool bFromSweep, const FHitResult &SweepResult)
 
void OnItemPickedUp (AActor *OtherActor)
 
bool CanPickup (AProjectXCharacter *Player)
 
float GetMaxPickupDistance () const
 

Protected Member Functions

virtual void Tick (float DeltaTime) override
 
void OnWaitingToReachRadiusExpired ()
 

Protected Attributes

float MaxPickupDistance = 500.0f
 
float SpawnTorqueIntensity = 500.0f
 
int MaxNumberOfCorrections = 6
 
int MaxAllowedTimeToReachPickupRadius = 4
 
float HelpingForceIntensity = 500.0f
 
float OutOfBoundsCorrectionIntensity = 500.0f
 
float OutOfBoundsRandomRotationIntensity = 500.0f
 
float InterpToRadiusSpeed = 2.f
 
int MinDistanceFromTargetToStopFinalCorrection = 100
 
FVector2D SettleForcesCheck = FVector2D(5.f, 2.f)
 
USphereComponent * OverlapComponent = nullptr
 
UStaticMeshComponent * StaticMeshComponent = nullptr
 

Constructor & Destructor Documentation

◆ APickup()

APickup::APickup ( )

Member Function Documentation

◆ BeginPlay()

void APickup::BeginPlay ( )
overridevirtual

◆ CanPickup()

bool APickup::CanPickup ( AProjectXCharacter Player)

◆ GetMaxPickupDistance()

float APickup::GetMaxPickupDistance ( ) const
inline

◆ GetPickupID()

int32 APickup::GetPickupID ( ) const
inline

◆ OnComponentBeginOverlap()

void APickup::OnComponentBeginOverlap ( UPrimitiveComponent *  OverlappedComponent,
AActor *  OtherActor,
UPrimitiveComponent *  OtherComp,
int32  OtherBodyIndex,
bool  bFromSweep,
const FHitResult &  SweepResult 
)

◆ OnItemPickedUp()

void APickup::OnItemPickedUp ( AActor *  OtherActor)

◆ OnWaitingToReachRadiusExpired()

void APickup::OnWaitingToReachRadiusExpired ( )
protected

◆ SetPickupInfo()

void APickup::SetPickupInfo ( int32  InPickupID,
FVector  InExpectedTargetLocation 
)
inline

◆ Tick()

void APickup::Tick ( float  DeltaTime)
overrideprotectedvirtual

Member Data Documentation

◆ HelpingForceIntensity

float APickup::HelpingForceIntensity = 500.0f
protected

◆ InterpToRadiusSpeed

float APickup::InterpToRadiusSpeed = 2.f
protected

◆ MaxAllowedTimeToReachPickupRadius

int APickup::MaxAllowedTimeToReachPickupRadius = 4
protected

◆ MaxNumberOfCorrections

int APickup::MaxNumberOfCorrections = 6
protected

◆ MaxPickupDistance

float APickup::MaxPickupDistance = 500.0f
protected

◆ MinDistanceFromTargetToStopFinalCorrection

int APickup::MinDistanceFromTargetToStopFinalCorrection = 100
protected

◆ OutOfBoundsCorrectionIntensity

float APickup::OutOfBoundsCorrectionIntensity = 500.0f
protected

◆ OutOfBoundsRandomRotationIntensity

float APickup::OutOfBoundsRandomRotationIntensity = 500.0f
protected

◆ OverlapComponent

USphereComponent* APickup::OverlapComponent = nullptr
protected

◆ SettleForcesCheck

FVector2D APickup::SettleForcesCheck = FVector2D(5.f, 2.f)
protected

◆ SpawnTorqueIntensity

float APickup::SpawnTorqueIntensity = 500.0f
protected

◆ StaticMeshComponent

UStaticMeshComponent* APickup::StaticMeshComponent = nullptr
protected

The documentation for this class was generated from the following files: