@@ -334,7 +334,7 @@ void URTSCamera::EdgeScrollLeft() const
334
334
const auto Movement = UKismetMathLibrary::FClamp (NormalizedMousePosition, 0.0 , 1.0 );
335
335
336
336
this ->Root ->AddRelativeLocation (
337
- -1 * this ->SpringArm ->GetRightVector () * Movement * this ->EdgeScrollSpeed
337
+ -1 * this ->Root ->GetRightVector () * Movement * this ->EdgeScrollSpeed
338
338
);
339
339
}
340
340
@@ -350,7 +350,7 @@ void URTSCamera::EdgeScrollRight() const
350
350
351
351
const auto Movement = UKismetMathLibrary::FClamp (NormalizedMousePosition, 0.0 , 1.0 );
352
352
this ->Root ->AddRelativeLocation (
353
- this ->SpringArm ->GetRightVector () * Movement * this ->EdgeScrollSpeed
353
+ this ->Root ->GetRightVector () * Movement * this ->EdgeScrollSpeed
354
354
);
355
355
}
356
356
@@ -366,7 +366,7 @@ void URTSCamera::EdgeScrollUp() const
366
366
367
367
const auto Movement = 1 - UKismetMathLibrary::FClamp (NormalizedMousePosition, 0.0 , 1.0 );
368
368
this ->Root ->AddRelativeLocation (
369
- this ->SpringArm ->GetForwardVector () * Movement * this ->EdgeScrollSpeed
369
+ this ->Root ->GetForwardVector () * Movement * this ->EdgeScrollSpeed
370
370
);
371
371
}
372
372
@@ -382,7 +382,7 @@ void URTSCamera::EdgeScrollDown() const
382
382
383
383
const auto Movement = UKismetMathLibrary::FClamp (NormalizedMousePosition, 0.0 , 1.0 );
384
384
this ->Root ->AddRelativeLocation (
385
- -1 * this ->SpringArm ->GetForwardVector () * Movement * this ->EdgeScrollSpeed
385
+ -1 * this ->Root ->GetForwardVector () * Movement * this ->EdgeScrollSpeed
386
386
);
387
387
}
388
388
0 commit comments