A class that automatically raises/lowers the floor level, thus changing the height of the player. To use it:
More...
#include <DynamicHieghtFloor.h>
|
| 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< FTransparentMaterialData > | GetActorTransparentMaterialData () |
| 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")
|
|
A class that automatically raises/lowers the floor level, thus changing the height of the player. To use it:
- Add a custom collision to the project, set it as an ObjectType for BoxCollision
- 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.
◆ ADynamicHieghtFloor()
ADynamicHieghtFloor::ADynamicHieghtFloor |
( |
| ) |
|
◆ AdjustCameraHeight()
void ADynamicHieghtFloor::AdjustCameraHeight |
( |
| ) |
|
|
BlueprintCallable |
◆ BeginPlay()
void ADynamicHieghtFloor::BeginPlay |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ CouldBeGrabbedByOtherHand()
bool IPixoVRStoryObject::CouldBeGrabbedByOtherHand |
( |
| ) |
|
|
inheritedBlueprintCallableBlueprintNativeEvent |
UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "Grip Behavior")
Determines if user can grab object from one hand to another.
◆ DenyDropping()
bool IPixoVRStoryObject::DenyDropping |
( |
| ) |
|
|
inheritedBlueprintCallableBlueprintNativeEvent |
UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "Grip Behavior")
Determines if user can drop this object.
◆ GENERATED_BODY()
ADynamicHieghtFloor::GENERATED_BODY |
( |
| ) |
|
|
private |
◆ GetActorTransparentMaterialData()
|
inheritedBlueprintCallableBlueprintNativeEvent |
UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "Fadable")
Gets data for fading actor.
◆ HoldItemByClick()
bool IPixoVRStoryObject::HoldItemByClick |
( |
| ) |
|
|
inheritedBlueprintCallableBlueprintNativeEvent |
UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "Grip Behavior")
Determines if you need to hold object by click or holding button.
◆ IsObjectActive()
bool IPixoVRStoryObject::IsObjectActive |
( |
| ) |
|
|
inheritedBlueprintCallableBlueprintNativeEvent |
UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "Story")
Returns whether object has active step/substep for current step/substep.
◆ ObjectActivated()
void IPixoVRStoryObject::ObjectActivated |
( |
| ) |
|
|
inheritedBlueprintCallableBlueprintNativeEvent |
UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "Story")
Called if object has active step/substep for current step/substep.
◆ ObjectDeactivated()
void IPixoVRStoryObject::ObjectDeactivated |
( |
| ) |
|
|
inheritedBlueprintCallableBlueprintNativeEvent |
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 | ) |
|
|
inheritedBlueprintCallableBlueprintNativeEvent |
UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "Grip Behavior")
Update flag indicate whether if user can drop this object.
◆ SetFloorHeight()
void ADynamicHieghtFloor::SetFloorHeight |
( |
float | Height | ) |
|
|
BlueprintCallable |
◆ UpdateObjectHighlight()
void IPixoVRStoryObject::UpdateObjectHighlight |
( |
bool | Activate | ) |
|
|
inheritedBlueprintCallableBlueprintNativeEvent |
UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "Hint")
Called to update object highlight.
◆ BoxCollision
|
EditAnywhereBlueprintReadWrite |
◆ DesiredCameraHeight
float ADynamicHieghtFloor::DesiredCameraHeight = 175.f |
|
EditAnywhereBlueprintReadWrite |
The documentation for this class was generated from the following files: