A Demo Project for the UnrealEngineSDK
Loading...
Searching...
No Matches
GripMotionControllerComponent.cpp File Reference
#include "GripMotionControllerComponent.h"
#include "IHeadMountedDisplay.h"
#include "HeadMountedDisplayTypes.h"
#include "Misc/ScopeLock.h"
#include "Net/UnrealNetwork.h"
#include "PrimitiveSceneInfo.h"
#include "Engine/World.h"
#include "GameFramework/WorldSettings.h"
#include "IXRSystemAssets.h"
#include "Components/StaticMeshComponent.h"
#include "MotionDelayBuffer.h"
#include "UObject/VRObjectVersion.h"
#include "UObject/UObjectGlobals.h"
#include "IXRTrackingSystem.h"
#include "DrawDebugHelpers.h"
#include "TimerManager.h"
#include "VRBaseCharacter.h"
#include "GripScripts/GS_Default.h"
#include "GripScripts/GS_LerpToHand.h"
#include "PhysicsPublic.h"
#include "PhysicsEngine/BodySetup.h"
#include "PhysicsEngine/ConstraintDrives.h"
#include "PhysicsReplication.h"
#include "Misc/CollisionIgnoreSubsystem.h"
#include "Features/IModularFeatures.h"
Include dependency graph for GripMotionControllerComponent.cpp:

Go to the source code of this file.

Namespaces

namespace  anonymous_namespace{GripMotionControllerComponent.cpp}
 
namespace  GripMotionControllerCvars
 

Functions

FAutoConsoleVariableRef GripMotionControllerCvars::CVarDrawCOMDebugSpheres (TEXT("vr.DrawDebugCenterOfMassForGrips"), DrawDebugGripCOM, TEXT("0: Disable, 1: Enable"), ECVF_Default)
 
 DECLARE_CYCLE_STAT (TEXT("GetGripWorldTransform ~ GettingTransform"), STAT_GetGripTransform, STATGROUP_TickGrip)
 
 DECLARE_CYCLE_STAT (TEXT("TickGrip ~ TickingGrip"), STAT_TickGrip, STATGROUP_TickGrip)
 
 DEFINE_LOG_CATEGORY (LogVRMotionController)
 
static void PullBackHitComp (FHitResult &Hit, const FVector &Start, const FVector &End, const float Dist)
 

Variables

const float ANGULAR_DAMPING_MULTIPLIER = 1.4f
 
const float ANGULAR_STIFFNESS_MULTIPLIER = 1.5f
 
FCriticalSection anonymous_namespace{GripMotionControllerComponent.cpp}::CritSect
 
static int32 GripMotionControllerCvars::DrawDebugGripCOM = 0
 
const float HYBRID_PHYSICS_GRIP_MULTIPLIER = 10.0f
 

Function Documentation

◆ DECLARE_CYCLE_STAT() [1/2]

DECLARE_CYCLE_STAT ( TEXT("GetGripWorldTransform ~ GettingTransform") ,
STAT_GetGripTransform ,
STATGROUP_TickGrip  )

◆ DECLARE_CYCLE_STAT() [2/2]

DECLARE_CYCLE_STAT ( TEXT("TickGrip ~ TickingGrip") ,
STAT_TickGrip ,
STATGROUP_TickGrip  )

◆ DEFINE_LOG_CATEGORY()

DEFINE_LOG_CATEGORY ( LogVRMotionController )

◆ PullBackHitComp()

static void PullBackHitComp ( FHitResult & Hit,
const FVector & Start,
const FVector & End,
const float Dist )
static

Definition at line 6871 of file GripMotionControllerComponent.cpp.

Here is the caller graph for this function:

Variable Documentation

◆ ANGULAR_DAMPING_MULTIPLIER

const float ANGULAR_DAMPING_MULTIPLIER = 1.4f

Definition at line 55 of file GripMotionControllerComponent.cpp.

◆ ANGULAR_STIFFNESS_MULTIPLIER

const float ANGULAR_STIFFNESS_MULTIPLIER = 1.5f

Definition at line 54 of file GripMotionControllerComponent.cpp.

◆ HYBRID_PHYSICS_GRIP_MULTIPLIER

const float HYBRID_PHYSICS_GRIP_MULTIPLIER = 10.0f

Definition at line 58 of file GripMotionControllerComponent.cpp.