A Demo Project for the UnrealEngineSDK
|
UCLASS() More...
#include <VRCharacterMovementComponent.h>
Public Member Functions | |
UVRCharacterMovementComponent (const FObjectInitializer &ObjectInitializer=FObjectInitializer::Get()) | |
void | AddCustomReplicatedMovement (FVector Movement) |
UFUNCTION(BlueprintCallable, Category = "BaseVRCharacterMovementComponent|VRLocations") | |
virtual void | ApplyNetworkMovementMode (const uint8 ReceivedMode) override |
FORCEINLINE void | ApplyReplicatedMovementMode (EVRConjoinedMovementModes &NewMovementMode, bool bClearMovementMode=false) |
virtual void | ApplyRepulsionForce (float DeltaSeconds) override |
void | ApplyVRMotionToVelocity (float deltaTime) |
bool | CanCrouch () |
virtual void | CapsuleTouched (UPrimitiveComponent *OverlappedComp, AActor *Other, UPrimitiveComponent *OtherComp, int32 OtherBodyIndex, bool bFromSweep, const FHitResult &SweepResult) override |
bool | CheckForMoveAction () |
void | CheckServerAuthedMoveAction () |
virtual bool | CheckWaterJump (FVector CheckPoint, FVector &WallNormal) override |
void | ClearCustomReplicatedMovement () |
UFUNCTION(BlueprintCallable, Category = "BaseVRCharacterMovementComponent|VRLocations") | |
virtual void | ClientAdjustPositionVR_Implementation (float TimeStamp, FVector NewLoc, uint16 NewYaw, FVector NewVel, UPrimitiveComponent *NewBase, FName NewBaseBoneName, bool bHasBase, bool bBaseRelativePosition, uint8 ServerMovementMode) |
virtual void | ClientHandleMoveResponse (const FCharacterMoveResponseDataContainer &MoveResponse) override |
virtual void | ComputeFloorDist (const FVector &CapsuleLocation, float LineDistance, float SweepDistance, FFindFloorResult &OutFloorResult, float SweepRadius, const FHitResult *DownwardSweepResult=NULL) const override |
virtual void | Crouch (bool bClientSimulation=false) override |
virtual bool | DoMAPauseTracking (FVRMoveActionContainer &MoveAction) |
virtual bool | DoMASetRotation (FVRMoveActionContainer &MoveAction) |
virtual bool | DoMASnapTurn (FVRMoveActionContainer &MoveAction) |
virtual bool | DoMAStopAllMovement (FVRMoveActionContainer &MoveAction) |
virtual bool | DoMATeleport (FVRMoveActionContainer &MoveAction) |
void | EndPushBackNotification () |
virtual void | FindFloor (const FVector &CapsuleLocation, FFindFloorResult &OutFloorResult, bool bCanUseCachedLocation, const FHitResult *DownwardSweepResult=NULL) const |
virtual bool | ForcePositionUpdate (float DeltaTime) override |
virtual FBasedPosition | GetActorFeetLocationBased () const override |
FVector | GetActorFeetLocationVR () const |
FVector | GetCustomInputVector () |
UFUNCTION(BlueprintCallable, Category = "VRMovement") | |
virtual FVector | GetImpartedMovementBaseVelocity () const override |
virtual FVector | GetPenetrationAdjustment (const FHitResult &Hit) const override |
FNetworkPredictionData_Client * | GetPredictionData_Client () const override |
FNetworkPredictionData_Server * | GetPredictionData_Server () const override |
EVRConjoinedMovementModes | GetReplicatedMovementMode () |
UFUNCTION(BlueprintPure, Category = "VRMovement") | |
FORCEINLINE bool | HasRequestedVelocity () |
float | ImmersionDepth () const override |
bool | IsClimbing () const |
virtual bool | IsWithinClimbingEdgeTolerance (const FVector &CapsuleLocation, const FVector &TestImpactPoint, const float CapsuleRadius) const |
virtual bool | IsWithinEdgeTolerance (const FVector &CapsuleLocation, const FVector &TestImpactPoint, const float CapsuleRadius) const override |
virtual void | MoveAlongFloor (const FVector &InVelocity, float DeltaSeconds, FStepDownResult *OutStepDownResult) override |
virtual void | MoveAutonomous (float ClientTimeStamp, float DeltaTime, uint8 CompressedFlags, const FVector &NewAccel) override |
void | MoveSmooth (const FVector &InVelocity, const float DeltaSeconds, FStepDownResult *OutStepDownResult) override |
virtual void | OnClientCorrectionReceived (class FNetworkPredictionData_Client_Character &ClientData, float TimeStamp, FVector NewLocation, FVector NewVelocity, UPrimitiveComponent *NewBase, FName NewBaseBoneName, bool bHasBase, bool bBaseRelativePosition, uint8 ServerMovementMode) override |
virtual void | OnMoveCompleted (FAIRequestID RequestID, const FPathFollowingResult &Result) |
void | OnMovementModeChanged (EMovementMode PreviousMovementMode, uint8 PreviousCustomMode) override |
virtual void | OnRegister () override |
void | PerformMoveAction_Custom (EVRMoveAction MoveActionToPerform, EVRMoveActionDataReq DataRequirementsForMoveAction, FVector MoveActionVector, FRotator MoveActionRotator, uint8 MoveActionFlags=0) |
UFUNCTION(BlueprintCallable, Category = "VRMovement") | |
void | PerformMoveAction_SetRotation (float NewYaw, EVRMoveActionVelocityRetention VelocityRetention=EVRMoveActionVelocityRetention::VRMOVEACTION_Velocity_None, bool bFlagGripTeleport=false, bool bFlagCharacterTeleport=false) |
UFUNCTION(BlueprintCallable, Category = "VRMovement") | |
void | PerformMoveAction_SetTrackingPaused (bool bNewTrackingPaused) |
UFUNCTION(BlueprintCallable, Category = "VRMovement") | |
void | PerformMoveAction_SnapTurn (float SnapTurnDeltaYaw, EVRMoveActionVelocityRetention VelocityRetention=EVRMoveActionVelocityRetention::VRMOVEACTION_Velocity_None, bool bFlagGripTeleport=false, bool bFlagCharacterTeleport=false) |
UFUNCTION(BlueprintCallable, Category = "VRMovement") | |
void | PerformMoveAction_StopAllMovement () |
UFUNCTION(BlueprintCallable, Category = "VRMovement") | |
void | PerformMoveAction_Teleport (FVector TeleportLocation, FRotator TeleportRotation, EVRMoveActionVelocityRetention VelocityRetention=EVRMoveActionVelocityRetention::VRMOVEACTION_Velocity_None, bool bSkipEncroachmentCheck=false) |
UFUNCTION(BlueprintCallable, Category = "VRMovement") | |
virtual void | PerformMovement (float DeltaSeconds) override |
virtual void | PhysCustom (float deltaTime, int32 Iterations) override |
virtual void | PhysCustom_Climbing (float deltaTime, int32 Iterations) |
virtual void | PhysCustom_LowGrav (float deltaTime, int32 Iterations) |
virtual void | PhysFalling (float deltaTime, int32 Iterations) override |
virtual void | PhysFlying (float deltaTime, int32 Iterations) override |
virtual void | PhysNavWalking (float deltaTime, int32 Iterations) override |
virtual void | PhysSwimming (float deltaTime, int32 Iterations) override |
virtual void | PhysWalking (float deltaTime, int32 Iterations) override |
void | PostPhysicsTickComponent (float DeltaTime, FCharacterMovementComponentPostPhysicsTickFunction &ThisTickFunction) override |
virtual void | ProcessLanded (const FHitResult &Hit, float remainingTime, int32 Iterations) override |
virtual void | ReplicateMoveToServer (float DeltaTime, const FVector &NewAcceleration) override |
void | RestorePreAdditiveVRMotionVelocity () |
FVector | RewindVRMovement () |
UFUNCTION(BlueprintCallable, Category = "VRMovement") | |
void | RewindVRRelativeMovement () |
FVector | RoundDirectMovement (FVector InMovement) const |
bool | SafeMoveUpdatedComponent (const FVector &Delta, const FQuat &NewRotation, bool bSweep, FHitResult &OutHit, ETeleportType Teleport=ETeleportType::None) |
bool | SafeMoveUpdatedComponent (const FVector &Delta, const FRotator &NewRotation, bool bSweep, FHitResult &OutHit, ETeleportType Teleport=ETeleportType::None) |
virtual bool | ServerCheckClientErrorVR (float ClientTimeStamp, float DeltaTime, const FVector &Accel, const FVector &ClientWorldLocation, float ClientYaw, const FVector &RelativeClientLocation, UPrimitiveComponent *ClientMovementBase, FName ClientBaseBoneName, uint8 ClientMovementMode) |
virtual void | ServerMove_PerformMovement (const FCharacterNetworkMoveData &MoveData) override |
virtual void | ServerMoveHandleClientErrorVR (float ClientTimeStamp, float DeltaTime, const FVector &Accel, const FVector &RelativeClientLocation, float ClientYaw, UPrimitiveComponent *ClientMovementBase, FName ClientBaseBoneName, uint8 ClientMovementMode) |
void | SetClimbingMode (bool bIsClimbing) |
UFUNCTION(BlueprintCallable, Category = "VRMovement|Climbing") | |
void | SetCrouchedHalfHeight (float NewCrouchedHalfHeight) |
UFUNCTION(BlueprintCallable, Category = "VRMovement") | |
void | SetHasRequestedVelocity (bool bNewHasRequestedVelocity) |
void | SetReplicatedMovementMode (EVRConjoinedMovementModes NewMovementMode) |
UFUNCTION(BlueprintCallable, Category = "VRMovement") | |
virtual void | SetUpdatedComponent (USceneComponent *NewUpdatedComponent) override |
virtual bool | ShouldCheckForValidLandingSpot (float DeltaTime, const FVector &Delta, const FHitResult &Hit) const override |
virtual void | SimulatedTick (float DeltaSeconds) override |
void | SimulateMovement (float DeltaSeconds) override |
virtual float | SlideAlongSurface (const FVector &Delta, float Time, const FVector &Normal, FHitResult &Hit, bool bHandleImpact) override |
virtual void | SmoothClientPosition (float DeltaSeconds) override |
void | SmoothClientPosition_UpdateVRVisuals () |
virtual void | SmoothCorrection (const FVector &OldLocation, const FQuat &OldRotation, const FVector &NewLocation, const FQuat &NewRotation) override |
void | StartPushBackNotification (FHitResult HitResult) |
void | StartSwimmingVR (FVector OldLocation, FVector OldVelocity, float timeTick, float remainingTime, int32 Iterations) |
bool | StepUp (const FVector &GravDir, const FVector &Delta, const FHitResult &InHit, FStepDownResult *OutStepDownResult=NULL) override |
virtual void | StoreSetTrackingPaused (bool bNewTrackingPaused) override |
float | SwimVR (FVector Delta, FHitResult &Hit) |
void | TickComponent (float DeltaTime, enum ELevelTick TickType, FActorComponentTickFunction *ThisTickFunction) |
virtual bool | TryToLeaveNavWalking () override |
virtual void | UnCrouch (bool bClientSimulation=false) override |
virtual void | UpdateBasedMovement (float DeltaSeconds) override |
void | UpdateFromCompressedFlags (uint8 Flags) override |
virtual bool | VerifyClientTimeStamp (float TimeStamp, FNetworkPredictionData_Server_Character &ServerData) override |
virtual bool | VRClimbStepUp (const FVector &GravDir, const FVector &Delta, const FHitResult &InHit, FStepDownResult *OutStepDownResult=nullptr) override |
Public Attributes | |
FVector | AdditionalVRInputVector |
bool | bAllowMovementMerging |
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category = "VRCharacterMovementComponent") | |
bool | bApplyAdditionalVRInputVectorAsNegative |
AVRBaseCharacter * | BaseVRCharacterOwner |
UPROPERTY(Transient, DuplicateTransient) | |
bool | bCapHMDMovementToMaxMovementSpeed |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRMovement") | |
bool | bClampClimbingStepUp |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRMovement|Climbing") | |
bool | bDisableSimulatedTickWhenSmoothingMovement |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRBaseCharacterMovementComponent|Smoothing") | |
bool | bHadExtremeInput |
bool | bHoldPositionOnTrackingLossThresholdHit |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRMovement") | |
bool | bIgnoreSimulatingComponentsInFloorCheck |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRMovement") | |
bool | bIsInPushBack |
bool | bJustUnseated |
bool | bNotifyTeleported |
bool | bRunClientCorrectionToHMD |
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category = "VRCharacterMovementComponent") | |
bool | bRunControlRotationInMovementComponent |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRMovement") | |
bool | bUseClientControlRotation |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRBaseCharacterMovementComponent") | |
bool | bWasInPushBack |
FVector | CustomVRInputVector |
EVRConjoinedMovementModes | DefaultPostClimbMovement |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRMovement|Climbing") | |
FVector | LastPreAdditiveVRVelocity |
FVRMoveActionArray | MoveActionArray |
FVROnPerformClimbingStepUp | OnPerformClimbingStepUp |
UPROPERTY(BlueprintAssignable, Category = "VRMovement") | |
bool | SetDefaultPostClimbMovementOnStepUp |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRMovement|Climbing") | |
float | TrackingLossThreshold |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRMovement", meta = (ClampMin = "0.0", UIMin = "0")) | |
float | VRClimbingEdgeRejectDistance |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRMovement|Climbing") | |
float | VRClimbingMaxReleaseVelocitySize |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRMovement|Climbing") | |
float | VRClimbingStepHeight |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRMovement|Climbing") | |
float | VRClimbingStepUpMaxSize |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRMovement|Climbing") | |
float | VRClimbingStepUpMultiplier |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRMovement|Climbing") | |
float | VREdgeRejectDistance |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRMovement") | |
bool | VRLowGravIgnoresDefaultFluidFriction |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRMovement|LowGrav") | |
float | VRLowGravWallFrictionScaler |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRMovement|LowGrav", meta = (ClampMin = "0.0", UIMin = "0", ClampMax = "5.0", UIMax = "5")) | |
FVRCharacterMoveResponseDataContainer | VRMoveResponseDataContainer |
FVRCharacterNetworkMoveDataContainer | VRNetworkMoveDataContainer |
EVRConjoinedMovementModes | VRReplicatedMovementMode |
UVRRootComponent * | VRRootCapsule |
UPROPERTY(BlueprintReadOnly, Transient, Category = VRMovement) | |
float | VRWallSlideScaler |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRMovement", meta = (ClampMin = "0.0", UIMin = "0", ClampMax = "5.0", UIMax = "5")) | |
Static Public Attributes | |
static const float | CLIMB_SWEEP_EDGE_REJECT_DISTANCE |
Private Member Functions | |
GENERATED_BODY () | |
UCLASS()
Shared pointer for easy memory management of FSavedMove_Character, for accumulating and replaying network moves. VRCharacterMovementComponent handles movement logic for the associated Character owner. It supports various movement modes including: walking, falling, swimming, flying, custom.
Movement is affected primarily by current Velocity and Acceleration. Acceleration is updated each frame based on the input vector accumulated thus far (see UPawnMovementComponent::GetPendingInputVector()).
Networking is fully implemented, with server-client correction and prediction included.
Definition at line 56 of file VRCharacterMovementComponent.h.
UVRCharacterMovementComponent::UVRCharacterMovementComponent | ( | const FObjectInitializer & | ObjectInitializer = FObjectInitializer::Get() | ) |
Default UObject constructor.
Definition at line 1363 of file VRCharacterMovementComponent.cpp.
|
inheritedBlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "BaseVRCharacterMovementComponent|VRLocations")
Definition at line 554 of file VRBaseCharacterMovementComponent.cpp.
|
overridevirtualinherited |
Definition at line 1228 of file VRBaseCharacterMovementComponent.cpp.
|
inlineinherited |
Definition at line 510 of file VRBaseCharacterMovementComponent.h.
|
overridevirtual |
Definition at line 1427 of file VRCharacterMovementComponent.cpp.
|
inlineinherited |
Definition at line 263 of file VRBaseCharacterMovementComponent.h.
bool UVRCharacterMovementComponent::CanCrouch | ( | ) |
Definition at line 1421 of file VRCharacterMovementComponent.cpp.
|
overridevirtual |
Get as close to waterline as possible, staying on same side as currently. Verify that the supplied hit result is a valid landing spot when falling.
Definition at line 1105 of file VRCharacterMovementComponent.cpp.
|
inherited |
Definition at line 695 of file VRBaseCharacterMovementComponent.cpp.
|
inherited |
Definition at line 568 of file VRBaseCharacterMovementComponent.cpp.
|
overridevirtual |
Check if swimming pawn just ran into edge of the pool and should jump out.
Definition at line 3323 of file VRCharacterMovementComponent.cpp.
|
inheritedBlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "BaseVRCharacterMovementComponent|VRLocations")
Definition at line 563 of file VRBaseCharacterMovementComponent.cpp.
|
virtual |
Replicate position correction to client, associated with a timestamped servermove. Client will replay subsequent moves after applying adjustment.
bRunClientCorrectionToHMD &&
Definition at line 3734 of file VRCharacterMovementComponent.cpp.
|
overridevirtual |
Definition at line 3676 of file VRCharacterMovementComponent.cpp.
|
overridevirtualinherited |
Definition at line 346 of file VRBaseCharacterMovementComponent.cpp.
|
overridevirtual |
Checks if new capsule size fits (no encroachment), and call CharacterOwner->OnStartCrouch() if successful. In general you should set bWantsToCrouch instead to have the crouch persist during movement, or just use the crouch functions on the owning Character.
bClientSimulation | true when called when bIsCrouched is replicated to non owned clients, to update collision cylinder and offset. |
Definition at line 89 of file VRCharacterMovementComponent.cpp.
|
virtualinherited |
Definition at line 926 of file VRBaseCharacterMovementComponent.cpp.
|
virtualinherited |
Definition at line 803 of file VRBaseCharacterMovementComponent.cpp.
|
virtualinherited |
Definition at line 736 of file VRBaseCharacterMovementComponent.cpp.
|
virtualinherited |
Definition at line 915 of file VRBaseCharacterMovementComponent.cpp.
|
virtualinherited |
Definition at line 866 of file VRBaseCharacterMovementComponent.cpp.
|
inherited |
Definition at line 312 of file VRBaseCharacterMovementComponent.cpp.
|
virtual |
Definition at line 2302 of file VRCharacterMovementComponent.cpp.
|
overridevirtualinherited |
Definition at line 126 of file VRBaseCharacterMovementComponent.cpp.
|
private |
|
overridevirtual |
Definition at line 3363 of file VRCharacterMovementComponent.cpp.
|
inherited |
Definition at line 326 of file VRBaseCharacterMovementComponent.cpp.
|
inheritedBlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "VRMovement")
Definition at line 1981 of file VRBaseCharacterMovementComponent.cpp.
|
overridevirtual |
Definition at line 2263 of file VRCharacterMovementComponent.cpp.
|
overridevirtual |
Definition at line 4121 of file VRCharacterMovementComponent.cpp.
|
override |
Definition at line 359 of file VRCharacterMovementComponent.cpp.
|
override |
Definition at line 375 of file VRCharacterMovementComponent.cpp.
|
inheritedBlueprintPure |
UFUNCTION(BlueprintPure, Category = "VRMovement")
Definition at line 1218 of file VRBaseCharacterMovementComponent.cpp.
|
inlineinherited |
Definition at line 102 of file VRBaseCharacterMovementComponent.h.
|
override |
Definition at line 2430 of file VRCharacterMovementComponent.cpp.
|
inherited |
Definition at line 1970 of file VRBaseCharacterMovementComponent.cpp.
|
virtual |
Definition at line 1906 of file VRCharacterMovementComponent.cpp.
|
overridevirtual |
Definition at line 1899 of file VRCharacterMovementComponent.cpp.
|
overridevirtual |
Definition at line 1593 of file VRCharacterMovementComponent.cpp.
|
overridevirtualinherited |
Definition at line 1639 of file VRBaseCharacterMovementComponent.cpp.
|
override |
Definition at line 3612 of file VRCharacterMovementComponent.cpp.
|
overridevirtualinherited |
Definition at line 1409 of file VRBaseCharacterMovementComponent.cpp.
|
virtualinherited |
Definition at line 338 of file VRBaseCharacterMovementComponent.cpp.
|
overrideinherited |
Definition at line 83 of file VRBaseCharacterMovementComponent.cpp.
|
overridevirtual |
Definition at line 1380 of file VRCharacterMovementComponent.cpp.
|
inheritedBlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "VRMovement")
Definition at line 680 of file VRBaseCharacterMovementComponent.cpp.
|
inheritedBlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "VRMovement")
Definition at line 626 of file VRBaseCharacterMovementComponent.cpp.
|
inheritedBlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "VRMovement")
Definition at line 583 of file VRBaseCharacterMovementComponent.cpp.
|
inheritedBlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "VRMovement")
Definition at line 598 of file VRBaseCharacterMovementComponent.cpp.
|
inheritedBlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "VRMovement")
Definition at line 671 of file VRBaseCharacterMovementComponent.cpp.
|
inheritedBlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "VRMovement")
Definition at line 650 of file VRBaseCharacterMovementComponent.cpp.
|
overridevirtualinherited |
Definition at line 1368 of file VRBaseCharacterMovementComponent.cpp.
|
overridevirtualinherited |
Definition at line 938 of file VRBaseCharacterMovementComponent.cpp.
|
virtualinherited |
Definition at line 961 of file VRBaseCharacterMovementComponent.cpp.
|
virtualinherited |
Definition at line 1117 of file VRBaseCharacterMovementComponent.cpp.
|
overridevirtual |
Definition at line 2595 of file VRCharacterMovementComponent.cpp.
|
overridevirtual |
Definition at line 2514 of file VRCharacterMovementComponent.cpp.
|
overridevirtual |
Definition at line 2966 of file VRCharacterMovementComponent.cpp.
|
overridevirtual |
Definition at line 3129 of file VRCharacterMovementComponent.cpp.
|
overridevirtual |
Definition at line 834 of file VRCharacterMovementComponent.cpp.
|
override |
Definition at line 3413 of file VRCharacterMovementComponent.cpp.
|
overridevirtual |
Definition at line 3368 of file VRCharacterMovementComponent.cpp.
|
overridevirtual |
Definition at line 1150 of file VRCharacterMovementComponent.cpp.
|
inlineinherited |
Definition at line 300 of file VRBaseCharacterMovementComponent.h.
|
inheritedBlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "VRMovement")
Definition at line 1975 of file VRBaseCharacterMovementComponent.cpp.
|
inlineinherited |
Definition at line 209 of file VRBaseCharacterMovementComponent.h.
|
inherited |
Definition at line 1997 of file VRBaseCharacterMovementComponent.cpp.
bool UVRCharacterMovementComponent::SafeMoveUpdatedComponent | ( | const FVector & | Delta, |
const FQuat & | NewRotation, | ||
bool | bSweep, | ||
FHitResult & | OutHit, | ||
ETeleportType | Teleport = ETeleportType::None ) |
Definition at line 1562 of file VRCharacterMovementComponent.cpp.
FORCEINLINE_DEBUGGABLE bool UVRCharacterMovementComponent::SafeMoveUpdatedComponent | ( | const FVector & | Delta, |
const FRotator & | NewRotation, | ||
bool | bSweep, | ||
FHitResult & | OutHit, | ||
ETeleportType | Teleport = ETeleportType::None ) |
Definition at line 1557 of file VRCharacterMovementComponent.cpp.
|
virtual |
Check for Server-Client disagreement in position or other movement state important enough to trigger a client correction.
Definition at line 3895 of file VRCharacterMovementComponent.cpp.
|
overridevirtual |
The actual RPCs are passed to ACharacter, which wrap to the _Implementation and _Validate call here, to avoid Component RPC overhead. For example: Client: UCharacterMovementComponent::ServerMove(...) => Calls CharacterOwner->ServerMove(...) triggering RPC on server Server: ACharacter::ServerMove_Implementation(...) => Calls CharacterMovement->ServerMove_Implementation To override the client call to the server RPC (on CharacterOwner), override ServerMove(). To override the server implementation, override ServerMove_Implementation().
Definition at line 444 of file VRCharacterMovementComponent.cpp.
|
virtual |
Have the server check if the client is outside an error tolerance, and queue a client adjustment if so. If either GetPredictionData_Server_Character()->bForceClientUpdate or ServerCheckClientError() are true, the client adjustment will be sent. RelativeClientLocation will be a relative location if MovementBaseUtility::UseRelativePosition(ClientMovementBase) is true, or a world location if false.
Definition at line 3949 of file VRCharacterMovementComponent.cpp.
|
inheritedBlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "VRMovement|Climbing")
Definition at line 1204 of file VRBaseCharacterMovementComponent.cpp.
|
inheritedBlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "VRMovement")
Definition at line 549 of file VRBaseCharacterMovementComponent.cpp.
|
inherited |
Definition at line 1965 of file VRBaseCharacterMovementComponent.cpp.
|
inheritedBlueprintCallable |
UFUNCTION(BlueprintCallable, Category = "VRMovement")
Definition at line 1212 of file VRBaseCharacterMovementComponent.cpp.
|
overridevirtual |
Reimplemented from UVRBaseCharacterMovementComponent.
Definition at line 1533 of file VRCharacterMovementComponent.cpp.
|
overridevirtual |
Definition at line 815 of file VRCharacterMovementComponent.cpp.
|
overridevirtualinherited |
Definition at line 1424 of file VRBaseCharacterMovementComponent.cpp.
|
override |
Definition at line 3425 of file VRCharacterMovementComponent.cpp.
|
overridevirtualinherited |
Custom version of SlideAlongSurface that handles different movement modes separately; namely during walking physics we might not want to slide up slopes.
Definition at line 493 of file VRBaseCharacterMovementComponent.cpp.
|
overridevirtualinherited |
Smooth mesh location for network interpolation, based on values set up by SmoothCorrection. Internally this simply calls SmoothClientPosition_Interpolate() then SmoothClientPosition_UpdateVisuals(). This function is not called when bNetworkSmoothingComplete is true.
DeltaSeconds | Time since last update. |
Definition at line 1899 of file VRBaseCharacterMovementComponent.cpp.
|
inherited |
Update mesh location based on interpolated values.
Definition at line 1924 of file VRBaseCharacterMovementComponent.cpp.
|
overridevirtualinherited |
Definition at line 1703 of file VRBaseCharacterMovementComponent.cpp.
|
inherited |
Definition at line 297 of file VRBaseCharacterMovementComponent.cpp.
void UVRCharacterMovementComponent::StartSwimmingVR | ( | FVector | OldLocation, |
FVector | OldVelocity, | ||
float | timeTick, | ||
float | remainingTime, | ||
int32 | Iterations ) |
Handle start swimming functionality
OldLocation | - Location on last tick |
OldVelocity | - velocity at last tick |
timeTick | - time since at OldLocation |
remainingTime | - DeltaTime to complete transition to swimming |
Iterations | - physics iteration count |
Definition at line 3260 of file VRCharacterMovementComponent.cpp.
|
override |
Definition at line 1676 of file VRCharacterMovementComponent.cpp.
|
overridevirtual |
Reimplemented from UVRBaseCharacterMovementComponent.
Definition at line 78 of file VRCharacterMovementComponent.cpp.
float UVRCharacterMovementComponent::SwimVR | ( | FVector | Delta, |
FHitResult & | Hit ) |
Definition at line 3297 of file VRCharacterMovementComponent.cpp.
|
virtual |
Reimplemented from UVRBaseCharacterMovementComponent.
Definition at line 1397 of file VRCharacterMovementComponent.cpp.
|
overridevirtual |
Checks to see if the current location is not encroaching blocking geometry so the character can leave NavWalking. Restores collision settings and adjusts character location to avoid getting stuck in geometry. If it's not possible, MovementMode change will be delayed until character reach collision free spot.
Definition at line 2476 of file VRCharacterMovementComponent.cpp.
|
overridevirtual |
Checks if default capsule size fits (no encroachment), and trigger OnEndCrouch() on the owner if successful.
bClientSimulation | true when called when bIsCrouched is replicated to non owned clients, to update collision cylinder and offset. |
Definition at line 204 of file VRCharacterMovementComponent.cpp.
|
overridevirtual |
Definition at line 2132 of file VRCharacterMovementComponent.cpp.
|
overrideinherited |
Definition at line 1986 of file VRBaseCharacterMovementComponent.cpp.
|
overridevirtualinherited |
Definition at line 288 of file VRBaseCharacterMovementComponent.cpp.
|
overridevirtual |
Reimplemented from UVRBaseCharacterMovementComponent.
Definition at line 1913 of file VRCharacterMovementComponent.cpp.
|
inherited |
Definition at line 203 of file VRBaseCharacterMovementComponent.h.
|
EditDefaultsOnlyBlueprintReadOnly |
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category = "VRCharacterMovementComponent")
Definition at line 81 of file VRCharacterMovementComponent.h.
|
inherited |
Definition at line 206 of file VRBaseCharacterMovementComponent.h.
|
inheritedTransientDuplicateTransient |
UPROPERTY(Transient, DuplicateTransient)
BaseVR Character movement component belongs to
Definition at line 48 of file VRBaseCharacterMovementComponent.h.
|
inheritedEditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRMovement")
Definition at line 85 of file VRBaseCharacterMovementComponent.h.
|
inheritedEditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRMovement|Climbing")
Definition at line 426 of file VRBaseCharacterMovementComponent.h.
|
inheritedEditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRBaseCharacterMovementComponent|Smoothing")
Definition at line 77 of file VRBaseCharacterMovementComponent.h.
|
inherited |
Definition at line 205 of file VRBaseCharacterMovementComponent.h.
|
inheritedEditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRMovement")
Definition at line 235 of file VRBaseCharacterMovementComponent.h.
|
inheritedEditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRMovement")
Definition at line 364 of file VRBaseCharacterMovementComponent.h.
|
inherited |
Definition at line 253 of file VRBaseCharacterMovementComponent.h.
|
inherited |
Definition at line 257 of file VRBaseCharacterMovementComponent.h.
|
inherited |
Definition at line 40 of file VRBaseCharacterMovementComponent.h.
|
EditDefaultsOnlyBlueprintReadOnly |
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category = "VRCharacterMovementComponent")
Definition at line 89 of file VRCharacterMovementComponent.h.
|
inheritedEditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRMovement")
Definition at line 373 of file VRBaseCharacterMovementComponent.h.
|
inheritedEditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRBaseCharacterMovementComponent")
Definition at line 69 of file VRBaseCharacterMovementComponent.h.
|
inherited |
Definition at line 252 of file VRBaseCharacterMovementComponent.h.
|
static |
Reject sweep impacts that are this close to the edge of the vertical portion of the capsule when performing vertical sweeps, and try again with a smaller capsule.
Definition at line 69 of file VRCharacterMovementComponent.h.
|
inherited |
Definition at line 202 of file VRBaseCharacterMovementComponent.h.
|
inheritedEditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRMovement|Climbing")
Definition at line 476 of file VRBaseCharacterMovementComponent.h.
|
inherited |
Definition at line 204 of file VRBaseCharacterMovementComponent.h.
|
inherited |
Definition at line 193 of file VRBaseCharacterMovementComponent.h.
|
inheritedBlueprintAssignable |
UPROPERTY(BlueprintAssignable, Category = "VRMovement")
Definition at line 95 of file VRBaseCharacterMovementComponent.h.
|
inheritedEditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRMovement|Climbing")
Definition at line 442 of file VRBaseCharacterMovementComponent.h.
|
inheritedEditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRMovement", meta = (ClampMin = "0.0", UIMin = "0"))
Definition at line 226 of file VRBaseCharacterMovementComponent.h.
|
inheritedEditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRMovement|Climbing")
Definition at line 410 of file VRBaseCharacterMovementComponent.h.
|
inheritedEditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRMovement|Climbing")
Definition at line 450 of file VRBaseCharacterMovementComponent.h.
|
inheritedEditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRMovement|Climbing")
Definition at line 398 of file VRBaseCharacterMovementComponent.h.
|
inheritedEditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRMovement|Climbing")
Definition at line 434 of file VRBaseCharacterMovementComponent.h.
|
inheritedEditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRMovement|Climbing")
Definition at line 418 of file VRBaseCharacterMovementComponent.h.
|
inheritedEditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRMovement")
Definition at line 462 of file VRBaseCharacterMovementComponent.h.
|
inheritedEditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRMovement|LowGrav")
Definition at line 550 of file VRBaseCharacterMovementComponent.h.
|
inheritedEditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRMovement|LowGrav", meta = (ClampMin = "0.0", UIMin = "0", ClampMax = "5.0", UIMax = "5"))
Definition at line 542 of file VRBaseCharacterMovementComponent.h.
|
inherited |
Definition at line 38 of file VRBaseCharacterMovementComponent.h.
|
inherited |
Default client to server move RPC data container. Can be bypassed via SetNetworkMoveDataContainer().
Definition at line 37 of file VRBaseCharacterMovementComponent.h.
|
inherited |
Definition at line 508 of file VRBaseCharacterMovementComponent.h.
|
TransientBlueprintReadOnly |
UPROPERTY(BlueprintReadOnly, Transient, Category = VRMovement)
Definition at line 66 of file VRCharacterMovementComponent.h.
|
inheritedEditAnywhereBlueprintReadWrite |
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "VRMovement", meta = (ClampMin = "0.0", UIMin = "0", ClampMax = "5.0", UIMax = "5"))
Definition at line 123 of file VRBaseCharacterMovementComponent.h.