Skip to content
Snippets Groups Projects
Commit f55f5561 authored by jwendt's avatar jwendt
Browse files

attach interaction ray

parent ce9589d0
No related branches found
No related tags found
1 merge request!2Feature/update to new VRPawn structure and adding an interaction ray that is also available in shipping builds
...@@ -16,6 +16,7 @@ UVRWidgetInteractionComponent::UVRWidgetInteractionComponent() { ...@@ -16,6 +16,7 @@ UVRWidgetInteractionComponent::UVRWidgetInteractionComponent() {
if (MeshAsset.Object != nullptr) if (MeshAsset.Object != nullptr)
{ {
InteractionRay->SetStaticMesh(MeshAsset.Object); InteractionRay->SetStaticMesh(MeshAsset.Object);
InteractionRay->AttachToComponent(this, FAttachmentTransformRules::KeepRelativeTransform);
//InteractionRay->SetRelativeRotation(FRotator(0, 90, 0)); //InteractionRay->SetRelativeRotation(FRotator(0, 90, 0));
} }
} }
......
...@@ -51,11 +51,6 @@ void FWidgetInteractionModule::OnWorldTickStart(ELevelTick level_tick, float val ...@@ -51,11 +51,6 @@ void FWidgetInteractionModule::OnWorldTickStart(ELevelTick level_tick, float val
if (vr_pawn == nullptr) if (vr_pawn == nullptr)
continue; continue;
FString name = "";
UClass* component_class = UMotionControllerComponent::StaticClass();
auto right_hand = vr_pawn->GetRightHandComponent();
CreateWidgetInteraction(vr_pawn->GetRightHandComponent(), vr_pawn); CreateWidgetInteraction(vr_pawn->GetRightHandComponent(), vr_pawn);
last_world = world; last_world = world;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment