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
This commit is part of merge request !2. Comments created here will be created in the context of that merge request.
......@@ -16,6 +16,7 @@ UVRWidgetInteractionComponent::UVRWidgetInteractionComponent() {
if (MeshAsset.Object != nullptr)
{
InteractionRay->SetStaticMesh(MeshAsset.Object);
InteractionRay->AttachToComponent(this, FAttachmentTransformRules::KeepRelativeTransform);
//InteractionRay->SetRelativeRotation(FRotator(0, 90, 0));
}
}
......
......@@ -51,11 +51,6 @@ void FWidgetInteractionModule::OnWorldTickStart(ELevelTick level_tick, float val
if (vr_pawn == nullptr)
continue;
FString name = "";
UClass* component_class = UMotionControllerComponent::StaticClass();
auto right_hand = vr_pawn->GetRightHandComponent();
CreateWidgetInteraction(vr_pawn->GetRightHandComponent(), vr_pawn);
last_world = world;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment