Adventure Kit  4.16
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
AAdvKitZoneLine Class Reference

Implementation of a zone that consists of a straight line defined by a beginning and end point. The character can only move in two directions along the line. More...

#include <AdvKitZoneLine.h>

Inheritance diagram for AAdvKitZoneLine:
AAdvKitZone

Public Member Functions

 AAdvKitZoneLine (const FObjectInitializer &ObjectInitializer)
 
virtual FVector GetZoneStartWorld ()
 
virtual FVector GetZoneEndWorld ()
 
virtual FVector ConstrainPositionToZone_Implementation (const FVector &WorldPosition, const FVector &HalfExtent, const FRotator &ExtentWorldRotation=FRotator::ZeroRotator) const override
 
virtual FVector ConstrainDirectionToZone_Implementation (const FVector &WorldDirection, const FVector &AtWorldLocation) const override
 
- Public Member Functions inherited from AAdvKitZone
 AAdvKitZone (const FObjectInitializer &ObjectInitializer)
 
void GenerateTransitions (bool bZoneMoved=true)
 
virtual void GenerateTransitions_Implementation (bool bZoneMoved=true)
 
virtual void AddTransition (TSubclassOf< AAdvKitCharacter > For, class UAdvKitTransitionComponent *Transition)
 
virtual void RemoveExistingTransitionsTo (class AAdvKitZone *Other)
 
virtual bool IsPointInside (const FVector &WorldPosition, float ErrorMargin=0.1f)
 
virtual TArray< class UAdvKitTransitionComponent * > GetPossibleTransitions (const class AAdvKitCharacter *ForCharacter)
 
FVector GetPositionInDirection (const FVector &FromWorldPosition, const FVector &WorldDesiredDelta, bool bClamp, const FVector &HalfExtent, const FRotator &ExtentWorldRotation=FRotator::ZeroRotator)
 
virtual FVector GetPositionInDirection_Implementation (const FVector &FromWorldPosition, const FVector &WorldDesiredDelta, bool bClamp, const FVector &HalfExtent, const FRotator &ExtentWorldRotation=FRotator::ZeroRotator)
 
virtual bool MoveLocationInDirection (UAdvKitZoneLocation *LocationToMove, const FVector &WorldDesiredDelta, const FVector &HalfExtent, const FRotator &ExtentWorldRotation=FRotator::ZeroRotator)
 
virtual FVector GetZoneForwardVector (const UAdvKitZoneLocation *AtLocation)
 
virtual FVector GetZoneRightVector (const UAdvKitZoneLocation *AtLocation)
 
virtual FVector GetZoneUpVector (const UAdvKitZoneLocation *AtLocation)
 
FVector ConstrainPositionToZone (const FVector &WorldPosition, const FVector &HalfExtent, const FRotator &ExtentWorldRotation=FRotator::ZeroRotator) const
 
virtual EAdvKitMovementMode GetPhysics ()
 
virtual uint8 GetCustomPhysics ()
 
virtual bool HasPhysics (EAdvKitMovementMode QueryPhysics)
 
virtual bool HasCustomPhysics (uint8 QueryPhysics)
 
void SetCharacterClass (TSubclassOf< AAdvKitCharacter > CharacterClass)
 
void AddCharacterClass (TSubclassOf< AAdvKitCharacter > CharacterClass)
 
void RemoveCharacterClass (TSubclassOf< AAdvKitCharacter > CharacterClass)
 
bool IsCharacterSupported (AAdvKitCharacter *Character)
 
virtual bool MoveLocationInDirectionNew (FVector &LocalZoneLocation, const FVector &WorldDesiredDelta, const FVector &HalfExtent, const FRotator &ExtentWorldRotation=FRotator::ZeroRotator)
 
virtual FVector GetZoneLocationWorld (const FVector &LocalZoneLocation) const
 
virtual FVector GetZoneLocationLocal (const FVector &WorldLocation) const
 
FVector GetZoneForwardVectorNew (const FVector &LocalZoneLocation) const
 
virtual FVector GetZoneForwardVectorNew_Implementation (const FVector &LocalZoneLocation) const
 
FVector GetZoneRightVectorNew (const FVector &LocalZoneLocation) const
 
virtual FVector GetZoneRightVectorNew_Implementation (const FVector &LocalZoneLocation) const
 
FVector GetZoneUpVectorNew (const FVector &LocalZoneLocation) const
 
virtual FVector GetZoneUpVectorNew_Implementation (const FVector &LocalZoneLocation) const
 
FVector GetClosestZoneForwardVector (const FVector &ToWorldLocation) const
 
virtual FVector GetClosestZoneForwardVector_Implementation (const FVector &ToWorldLocation) const
 
FVector GetClosestZoneRightVector (const FVector &ToWorldLocation) const
 
virtual FVector GetClosestZoneRightVector_Implementation (const FVector &ToWorldLocation) const
 
FVector GetClosestZoneUpVector (const FVector &ToWorldLocation) const
 
virtual FVector GetClosestZoneUpVector_Implementation (const FVector &ToWorldLocation) const
 
virtual FTransform GetClosestZoneTransform (const FVector &ToWorldLocation) const
 
FVector GetClosestZoneLocationNew (const FVector &WorldLocation, const FVector &HalfExtent, const FRotator &ExtentWorldRotation=FRotator::ZeroRotator) const
 
virtual FVector GetClosestZoneLocationNew_Implementation (const FVector &WorldLocation, const FVector &HalfExtent, const FRotator &ExtentWorldRotation=FRotator::ZeroRotator) const
 
FVector ConstrainDirectionToZone (const FVector &WorldDirection, const FVector &AtWorldLocation) const
 
virtual bool IsNameStableForNetworking () const override
 
virtual bool IsSupportedForNetworking () const override
 

Public Attributes

FVector ZoneStart
 
bool bConstrainExtentAtStart
 
FVector ZoneEnd
 
bool bConstrainExtentAtEnd
 
- Public Attributes inherited from AAdvKitZone
EAdvKitMovementMode ZonePhysics
 
uint8 CustomZonePhysics
 
TArray< UAdvKitTransitionBuilderModule * > BuildModules
 
bool bDoubleConstructionScriptFix
 

Protected Member Functions

virtual FVector GetProjectedHalfExtent (const FVector &LocalDirection, const FVector &HalfExtent, const FRotator &ExtentWorldRotation=FRotator::ZeroRotator) const
 

Detailed Description

Implementation of a zone that consists of a straight line defined by a beginning and end point. The character can only move in two directions along the line.

Constructor & Destructor Documentation

AAdvKitZoneLine::AAdvKitZoneLine ( const FObjectInitializer &  ObjectInitializer)

Constructor

Member Function Documentation

FVector AAdvKitZoneLine::GetProjectedHalfExtent ( const FVector &  LocalDirection,
const FVector &  HalfExtent,
const FRotator &  ExtentWorldRotation = FRotator::ZeroRotator 
) const
protectedvirtual

Projects a given character extent onto a line defined by direction.

Parameters
LocalDirectionThe line's direction to project onto in local space
HalfExtentThe extent of the character to project
ExtentWorldRotationWorld rotation of the character.
Returns
The projected half extent.
FVector AAdvKitZoneLine::GetZoneEndWorld ( )
virtual

Get the end of the line in world space.

Returns
End of the line in world space.
FVector AAdvKitZoneLine::GetZoneStartWorld ( )
virtual

Get the start of the line in world space.

Returns
Start of the line in world space.

Member Data Documentation

bool AAdvKitZoneLine::bConstrainExtentAtEnd

Whether or not the end of the line is clamped by the character's extent (think it as being a wall).

bool AAdvKitZoneLine::bConstrainExtentAtStart

Whether or not the start of the line is clamped by the character's extent (think it as being a wall).

FVector AAdvKitZoneLine::ZoneEnd

End of the line

FVector AAdvKitZoneLine::ZoneStart

Start of the line


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