5#include "CoreMinimal.h"
7#include "Engine/Engine.h"
8#include "Animation/SkeletalMeshActor.h"
9#include "Components/SkeletalMeshComponent.h"
10#include "Components/SphereComponent.h"
11#include "Engine/ActorChannel.h"
12#include "OptionalRepSkeletalMeshActor.generated.h"
15UCLASS(Blueprintable, meta = (BlueprintSpawnableComponent, ChildCanTick), ClassGroup = (
VRExpansionPlugin))
23 UPROPERTY(EditAnywhere, Replicated, BlueprintReadWrite, Category = "Component Replication")
24 bool bReplicateMovement;
26 virtual
void PreReplication(IRepChangedPropertyTracker& ChangedPropertyTracker) override;
37 GENERATED_USTRUCT_BODY()
41 virtual void ExecuteTick(
float DeltaTime,
enum ELevelTick TickType, ENamedThreads::Type CurrentThread,
const FGraphEventRef& MyCompletionGraphEvent)
override;
43 virtual FString DiagnosticMessage()
override;
45 virtual FName DiagnosticContext(
bool bDetailed)
override;
58UCLASS(Blueprintable, meta = (ChildCanTick, BlueprintSpawnableComponent), ClassGroup = (
VRExpansionPlugin))
69 UPROPERTY(EditAnywhere, Replicated, BlueprintReadWrite, Category =
"Component Replication")
70 bool bReplicateMovement;
77 void BlendInPhysicsInternalVR(
FTickFunction& ThisTickFunction);
78 void FinalizeAnimationUpdateVR();
80 virtual FBoxSphereBounds CalcBounds(const FTransform& LocalToWorld)
const override
83 FTransform newLocalToWorld = LocalToWorld;
84 newLocalToWorld.SetScale3D(newLocalToWorld.GetScale3D().GetAbs());
86 return Super::CalcBounds(newLocalToWorld);
89 UFUNCTION(BlueprintPure, Category =
"VRExpansionFunctions")
90 FBoxSphereBounds GetLocalBounds()
const
92 return this->GetCachedLocalBounds();
95 void PerformBlendPhysicsBonesVR(
const TArray<FBoneIndexType>& InRequiredBones, TArray<FTransform>& InBoneSpaceTransforms);
96 virtual void RegisterEndPhysicsTick(
bool bRegister)
override;
97 virtual void TickComponent(
float DeltaTime,
enum ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction)
override;
100 virtual void PreReplication(IRepChangedPropertyTracker & ChangedPropertyTracker)
override;
109UCLASS(Blueprintable, meta = (BlueprintSpawnableComponent, ChildCanTick), ClassGroup = (
VRExpansionPlugin))
118 UPROPERTY(EditAnywhere, Replicated, BlueprintReadWrite, Category =
"Replication")
119 bool bIgnoreAttachmentReplication;
122 UPROPERTY(EditAnywhere, Replicated, BlueprintReadWrite, Category =
"Replication")
123 bool bIgnorePhysicsReplication;
126 virtual void OnRep_ReplicateMovement()
override;
127 virtual void PostNetReceivePhysicState()
override;
UCLASS(Blueprintable, meta = (BlueprintSpawnableComponent, ChildCanTick), ClassGroup = (VRExpansionPl...
bool bIgnoreAttachmentReplication
UPROPERTY(EditAnywhere, Replicated, BlueprintReadWrite, Category = "Replication")
bool bIgnorePhysicsReplication
UPROPERTY(EditAnywhere, Replicated, BlueprintReadWrite, Category = "Replication")
UCLASS(Blueprintable, meta = (ChildCanTick, BlueprintSpawnableComponent), ClassGroup = (VRExpansionPl...
FBoxSphereBounds GetLocalBounds() const
UFUNCTION(BlueprintPure, Category = "VRExpansionFunctions")
virtual FBoxSphereBounds CalcBounds(const FTransform &LocalToWorld) const override
FSkeletalMeshComponentEndPhysicsTickFunctionVR EndPhysicsTickFunctionVR
bool bReplicateMovement
UPROPERTY(EditAnywhere, Replicated, BlueprintReadWrite, Category = "Component Replication")
UCLASS(Blueprintable, meta = (BlueprintSpawnableComponent, ChildCanTick), ClassGroup = (VRExpansionPl...
bool bReplicateMovement
UPROPERTY(EditAnywhere, Replicated, BlueprintReadWrite, Category = "Component Replication")
virtual void ExecuteTick(float DeltaTime, enum ELevelTick TickType, ENamedThreads::Type CurrentThread, const FGraphEventRef &MyCompletionGraphEvent) override
virtual FString DiagnosticMessage() override
virtual FName DiagnosticContext(bool bDetailed) override
UInversePhysicsSkeletalMeshComponent * TargetVR