fix the wrong tracker origin calculations
This commit is contained in:
@@ -697,8 +697,8 @@ void USGWristTrackerComponent::FImpl::UpdateWristTrackingData() const
|
|||||||
{
|
{
|
||||||
ensureAlwaysMsgf(Owner->Glove, TEXT("Invalid Glove!"));
|
ensureAlwaysMsgf(Owner->Glove, TEXT("Invalid Glove!"));
|
||||||
|
|
||||||
FVector TrackerLocation{Owner->GetRelativeLocation()};
|
FVector TrackerLocation{Owner->GetComponentLocation()};
|
||||||
FRotator TrackerRotation{Owner->GetRelativeRotation()};
|
FRotator TrackerRotation{Owner->GetComponentRotation()};
|
||||||
|
|
||||||
ESGPositionalTrackingHardware TrackerHardware = Owner->GetTrackingHardware();
|
ESGPositionalTrackingHardware TrackerHardware = Owner->GetTrackingHardware();
|
||||||
if (TrackerHardware == ESGPositionalTrackingHardware::None)
|
if (TrackerHardware == ESGPositionalTrackingHardware::None)
|
||||||
@@ -748,8 +748,8 @@ void USGWristTrackerComponent::FImpl::UpdateWristTrackingData() const
|
|||||||
void USGWristTrackerComponent::FImpl::DrawDebugGizmo()
|
void USGWristTrackerComponent::FImpl::DrawDebugGizmo()
|
||||||
{
|
{
|
||||||
const UWorld* World{Owner->GetWorld()};
|
const UWorld* World{Owner->GetWorld()};
|
||||||
const FVector& Location{Owner->GetRelativeLocation()};
|
const FVector& Location{Owner->GetComponentLocation()};
|
||||||
const FRotator& Rotation{Owner->GetRelativeRotation()};
|
const FRotator& Rotation{Owner->GetComponentRotation()};
|
||||||
const float Length = Owner->GetDebugWristTrackerGizmoLength();
|
const float Length = Owner->GetDebugWristTrackerGizmoLength();
|
||||||
const bool bPersistentLines = Owner->GetDebugWristTrackerGizmoPersistentLines();
|
const bool bPersistentLines = Owner->GetDebugWristTrackerGizmoPersistentLines();
|
||||||
const float LifeTime = UGameplayStatics::GetWorldDeltaSeconds(World)
|
const float LifeTime = UGameplayStatics::GetWorldDeltaSeconds(World)
|
||||||
|
|||||||
Reference in New Issue
Block a user