A Demo Project for the UnrealEngineSDK
Loading...
Searching...
No Matches
ADynamicHieghtFloor Class Reference

A class that automatically raises/lowers the floor level, thus changing the height of the player. To use it: More...

#include <DynamicHieghtFloor.h>

Inheritance diagram for ADynamicHieghtFloor:
[legend]

Public Member Functions

 ADynamicHieghtFloor ()
 
void AdjustCameraHeight ()
 UFUNCTION(BlueprintCallable, Category = "Dynamic Floor")
 
bool CouldBeGrabbedByOtherHand ()
 UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "Grip Behavior")
 
bool DenyDropping ()
 UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "Grip Behavior")
 
TArray< FTransparentMaterialDataGetActorTransparentMaterialData ()
 UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "Fadable")
 
bool HoldItemByClick ()
 UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "Grip Behavior")
 
bool IsObjectActive ()
 UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "Story")
 
void ObjectActivated ()
 UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "Story")
 
void ObjectDeactivated ()
 UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "Story")
 
void SetDenyDropping (const bool bDenyDropping)
 UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "Grip Behavior")
 
void SetFloorHeight (float Height)
 UFUNCTION(BlueprintCallable, Category = "Dynamic Floor")
 
void UpdateObjectHighlight (bool Activate)
 UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "Hint")
 

Public Attributes

class UBoxComponentBoxCollision
 UPROPERTY(EditAnywhere, BlueprintReadWrite)
 
float DesiredCameraHeight = 175.f
 UPROPERTY(EditAnywhere, BlueprintReadWrite)
 

Protected Member Functions

virtual void BeginPlay () override
 

Private Member Functions

 GENERATED_BODY ()
 

Detailed Description

A class that automatically raises/lowers the floor level, thus changing the height of the player. To use it:

  1. Add a custom collision to the project, set it as an ObjectType for BoxCollision
  2. Add a block for this type of collision to the player The class needs to be revised because different helmets return different position values due to the use of XRSystem.
    Todo
    Rename to ADynamicHeightFloor

UCLASS()

Definition at line 24 of file DynamicHieghtFloor.h.

Constructor & Destructor Documentation

◆ ADynamicHieghtFloor()

ADynamicHieghtFloor::ADynamicHieghtFloor ( )

Definition at line 13 of file DynamicHieghtFloor.cpp.

Member Function Documentation

◆ AdjustCameraHeight()

void ADynamicHieghtFloor::AdjustCameraHeight ( )
BlueprintCallable

UFUNCTION(BlueprintCallable, Category = "Dynamic Floor")

Definition at line 30 of file DynamicHieghtFloor.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ BeginPlay()

void ADynamicHieghtFloor::BeginPlay ( )
overrideprotectedvirtual

Definition at line 21 of file DynamicHieghtFloor.cpp.

Here is the call graph for this function:

◆ CouldBeGrabbedByOtherHand()

bool IPixoVRStoryObject::CouldBeGrabbedByOtherHand ( )
inheritedBlueprintNativeEventBlueprintCallable

UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "Grip Behavior")

Determines if user can grab object from one hand to another.

◆ DenyDropping()

bool IPixoVRStoryObject::DenyDropping ( )
inheritedBlueprintNativeEventBlueprintCallable

UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "Grip Behavior")

Determines if user can drop this object.

◆ GENERATED_BODY()

ADynamicHieghtFloor::GENERATED_BODY ( )
private

◆ GetActorTransparentMaterialData()

TArray< FTransparentMaterialData > IPixoVRStoryObject::GetActorTransparentMaterialData ( )
inheritedBlueprintNativeEventBlueprintCallable

UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "Fadable")

Gets data for fading actor.

◆ HoldItemByClick()

bool IPixoVRStoryObject::HoldItemByClick ( )
inheritedBlueprintNativeEventBlueprintCallable

UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "Grip Behavior")

Determines if you need to hold object by click or holding button.

◆ IsObjectActive()

bool IPixoVRStoryObject::IsObjectActive ( )
inheritedBlueprintNativeEventBlueprintCallable

UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "Story")

Returns whether object has active step/substep for current step/substep.

◆ ObjectActivated()

void IPixoVRStoryObject::ObjectActivated ( )
inheritedBlueprintNativeEventBlueprintCallable

UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "Story")

Called if object has active step/substep for current step/substep.

◆ ObjectDeactivated()

void IPixoVRStoryObject::ObjectDeactivated ( )
inheritedBlueprintNativeEventBlueprintCallable

UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "Story")

Called if object does not have active step/substep for current step/substep.

◆ SetDenyDropping()

void IPixoVRStoryObject::SetDenyDropping ( const bool bDenyDropping)
inheritedBlueprintNativeEventBlueprintCallable

UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "Grip Behavior")

Update flag indicate whether if user can drop this object.

◆ SetFloorHeight()

void ADynamicHieghtFloor::SetFloorHeight ( float Height)
BlueprintCallable

UFUNCTION(BlueprintCallable, Category = "Dynamic Floor")

Definition at line 51 of file DynamicHieghtFloor.cpp.

Here is the caller graph for this function:

◆ UpdateObjectHighlight()

void IPixoVRStoryObject::UpdateObjectHighlight ( bool Activate)
inheritedBlueprintNativeEventBlueprintCallable

UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "Hint")

Called to update object highlight.

Member Data Documentation

◆ BoxCollision

class UBoxComponent* ADynamicHieghtFloor::BoxCollision
BlueprintReadWriteEditAnywhere

UPROPERTY(EditAnywhere, BlueprintReadWrite)

Definition at line 59 of file DynamicHieghtFloor.h.

◆ DesiredCameraHeight

float ADynamicHieghtFloor::DesiredCameraHeight = 175.f
BlueprintReadWriteEditAnywhere

UPROPERTY(EditAnywhere, BlueprintReadWrite)

Definition at line 48 of file DynamicHieghtFloor.h.


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