RapyutaSimulationPlugins
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
URRCrowdFollowingComponent Class Reference

Base component for crowd path following movement. Use URRFloatingMovementComponent if IsCrowdSimulationEnabled is false. More...

#include <RRCrowdFollowingComponent.h>

Inheritance diagram for URRCrowdFollowingComponent:
Inheritance graph
[legend]
Collaboration diagram for URRCrowdFollowingComponent:
Collaboration graph
[legend]

Public Member Functions

 URRCrowdFollowingComponent (const FObjectInitializer &ObjectInitializer)
 
virtual void SetMovementComponent (UNavMovementComponent *InMoveComp) override
 
bool Is2DMovement () const
 
bool IsIdle () const
 
bool IsReadyForNewMovementOrder () const
 

Public Attributes

TObjectPtr< URRFloatingMovementComponentFloatMovementComp = nullptr
 

Protected Member Functions

virtual void FollowPathSegment (float InDeltaTime) override
 
virtual void ApplyCrowdAgentVelocity (const FVector &InNewVelocity, const FVector &InDestPathCorner, bool bInTraversingLink, bool bInNearEndOfPath) override
 
virtual void OnPathFinished (const FPathFollowingResult &InResult) override
 

Detailed Description

Base component for crowd path following movement. Use URRFloatingMovementComponent if IsCrowdSimulationEnabled is false.

UCLASS()

Constructor & Destructor Documentation

◆ URRCrowdFollowingComponent()

URRCrowdFollowingComponent::URRCrowdFollowingComponent ( const FObjectInitializer &  ObjectInitializer)

Member Function Documentation

◆ ApplyCrowdAgentVelocity()

virtual void URRCrowdFollowingComponent::ApplyCrowdAgentVelocity ( const FVector &  InNewVelocity,
const FVector &  InDestPathCorner,
bool  bInTraversingLink,
bool  bInNearEndOfPath 
)
overrideprotectedvirtual

◆ FollowPathSegment()

virtual void URRCrowdFollowingComponent::FollowPathSegment ( float  InDeltaTime)
overrideprotectedvirtual

◆ Is2DMovement()

bool URRCrowdFollowingComponent::Is2DMovement ( ) const

◆ IsIdle()

bool URRCrowdFollowingComponent::IsIdle ( ) const
inline

◆ IsReadyForNewMovementOrder()

bool URRCrowdFollowingComponent::IsReadyForNewMovementOrder ( ) const
inline

◆ OnPathFinished()

virtual void URRCrowdFollowingComponent::OnPathFinished ( const FPathFollowingResult &  InResult)
overrideprotectedvirtual

◆ SetMovementComponent()

virtual void URRCrowdFollowingComponent::SetMovementComponent ( UNavMovementComponent *  InMoveComp)
overridevirtual

Member Data Documentation

◆ FloatMovementComp

TObjectPtr<URRFloatingMovementComponent> URRCrowdFollowingComponent::FloatMovementComp = nullptr

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