diff --git a/Content/PointingRay/Ray_Mesh.uasset b/Content/PointingRay/Ray_Mesh.uasset index 8a35d2c88da8bde64b6e2fcff085658ec8561964..0da58a602c186aa1ac8d65ba57d2d966a78419b5 100644 Binary files a/Content/PointingRay/Ray_Mesh.uasset and b/Content/PointingRay/Ray_Mesh.uasset differ diff --git a/Source/DisplayClusterExtensions/Private/Pawn/BasicVRInteractionComponent.cpp b/Source/DisplayClusterExtensions/Private/Pawn/BasicVRInteractionComponent.cpp index fe546cd44482d92ac317eba6d30ba68a60a3598b..4ac891dbf80e959a50389518abab20ffdbff9458 100644 --- a/Source/DisplayClusterExtensions/Private/Pawn/BasicVRInteractionComponent.cpp +++ b/Source/DisplayClusterExtensions/Private/Pawn/BasicVRInteractionComponent.cpp @@ -177,6 +177,7 @@ void UBasicVRInteractionComponent::Initialize(USceneComponent* RayEmitter, float MaxClickDistance = InMaxClickDistance; InteractionRay->AttachToComponent(RayEmitter, FAttachmentTransformRules::KeepRelativeTransform); + InteractionRay->SetRelativeScale3D(FVector(MaxClickDistance/100.0f, 1.0f, 1.0f)); //the ray model has a length of 100cm this->AttachToComponent(RayEmitter, FAttachmentTransformRules::KeepRelativeTransform); }