Skip to content
Snippets Groups Projects
Select Git revision
  • 0a5e566b83ec543832d310cb6781ac3bec12cf17
  • 5.4 default protected
  • 5.5
  • dev/5.5
  • dev/5.4
  • dev/5.3_downgrade
  • feature/experimenttime_hack
  • 5.3 protected
  • _IntenSelect5.3
  • IntenSelect5.3
  • 4.27 protected
  • 4.26 protected
  • 5.0 protected
  • 4.22 protected
  • 4.21 protected
  • UE5.4-2024.1
  • UE5.4-2024.1-rc1
  • UE5.3-2023.1-rc3
  • UE5.3-2023.1-rc2
  • UE5.3-2023.1-rc
20 results

Outer_Pillars.uasset

Blame
  • OptiXVRPawn.h 2.97 KiB
    // Fill out your copyright notice in the Description page of Project Settings.
    
    #pragma once
    
    #include "CoreMinimal.h"
    #include "GameFramework/Pawn.h"
    #include "Components/SceneCaptureComponent2D.h"
    #include "OptiXVRPawn.generated.h"
    
    
    
    UCLASS()
    class OPTIX_API AOptiXVRPawn : public APawn
    {
    	GENERATED_BODY()
    
    public:
    	// Sets default values for this pawn's properties
    	AOptiXVRPawn();
    
    protected:
    	// Called when the game starts or when spawned
    	virtual void BeginPlay() override;
    
    public:	
    	// Called every frame
    	virtual void Tick(float DeltaTime) override;
    
    	// Called to bind functionality to input
    	virtual void SetupPlayerInputComponent(class UInputComponent* PlayerInputComponent) override;
    
    	UFUNCTION(BlueprintCallable, /*meta = (BlueprintProtected)*/ Category = "OptiXActor")
    	void UpdateTranslation(UPrimitiveComponent* Interaction);
    
    	UFUNCTION(BlueprintCallable, /*meta = (BlueprintProtected)*/ Category = "OptiXActor")
    	FVector GetDistanceVector(UPrimitiveComponent* Other);
    
    	UFUNCTION(BlueprintCallable, /*meta = (BlueprintProtected)*/ Category = "OptiXActor")
    	UStaticMeshComponent* GetNearestMeshComponent(UPrimitiveComponent* Other);
    
    	UFUNCTION(BlueprintCallable, /*meta = (BlueprintProtected)*/ Category = "OptiXActor")
    	AActor* GetActorNearHand(UPrimitiveComponent* Hand);
    
    	UFUNCTION(BlueprintCallable, /*meta = (BlueprintProtected)*/ Category = "OptiXActor")
    	UMaterialInstanceDynamic* GetMIDOrtho();
    	
    	UFUNCTION(BlueprintCallable, /*meta = (BlueprintProtected)*/ Category = "OptiXActor")
    	void RequestOrthoPass(const FMinimalViewInfo& ViewInfo);
    
    	UFUNCTION(BlueprintCallable, /*meta = (BlueprintProtected)*/ Category = "OptiXActor")
    	void CaptureDeferredHelper(USceneCaptureComponent2D* SceneCapture);
    	
    	UFUNCTION(BlueprintImplementableEvent, BlueprintCallable, /*meta = (BlueprintProtected)*/ Category = "OptiXActor")
    	void UIEventTranslation();
    
    	UFUNCTION(BlueprintImplementableEvent, BlueprintCallable, /*meta = (BlueprintProtected)*/ Category = "OptiXActor")
    	void UIEventRotation();
    
    	UFUNCTION(BlueprintImplementableEvent, BlueprintCallable, /*meta = (BlueprintProtected)*/ Category = "OptiXActor")
    	void UIEventDeselect();
    
    	UFUNCTION(BlueprintImplementableEvent, BlueprintCallable, /*meta = (BlueprintProtected)*/ Category = "OptiXActor")
    	void UIEventDelete();
    
    	UFUNCTION(BlueprintImplementableEvent, BlueprintCallable, /*meta = (BlueprintProtected)*/ Category = "OptiXActor")
    	void OnOverlapBeginWithLever(UPrimitiveComponent* Lever);
    
    	UFUNCTION(BlueprintImplementableEvent, BlueprintCallable, /*meta = (BlueprintProtected)*/ Category = "OptiXActor")
    	void OnOverlapEndWithLever(UPrimitiveComponent* Lever);
    
    public:
    
    	UPROPERTY(BlueprintReadWrite, EditAnywhere)
    	UStaticMeshComponent* GrabbedLever;
    
    	UPROPERTY(BlueprintReadWrite, EditAnywhere)
    	float GrabDistanceX = 0.0f;
    
    	UPROPERTY(BlueprintReadWrite, EditAnywhere)
    	float GrabDistanceY = 0.0f;
    
    	UPROPERTY(BlueprintReadWrite, EditAnywhere)
    	float GrabDistanceZ = 0.0f;
    
    	UPROPERTY(BlueprintReadWrite, EditAnywhere)
    	float Damping = 0.1f;
    };