add event handler lambdas for wrist tracker component of the virtual ahnd actor
This commit is contained in:
@@ -120,6 +120,16 @@ void ASGVirtualHandActor::Tick(const float DeltaSeconds)
|
||||
#endif
|
||||
|
||||
Super::Tick(DeltaSeconds);
|
||||
|
||||
WristTracker->OnWristLocationChanged().AddWeakLambda(this, [&](const FVector& Location)-> void
|
||||
{
|
||||
VirtualHand->SetRelativeLocation(Location);
|
||||
});
|
||||
|
||||
WristTracker->OnWristRotationChanged().AddWeakLambda(this, [&](const FRotator& Rotation)-> void
|
||||
{
|
||||
VirtualHand->SetRelativeRotation(Rotation);
|
||||
});
|
||||
}
|
||||
|
||||
bool ASGVirtualHandActor::ShouldTickIfViewportsOnly() const
|
||||
|
||||
Reference in New Issue
Block a user