Skip to content
Snippets Groups Projects
Commit bb826357 authored by Patrick Nossol's avatar Patrick Nossol
Browse files

Added two properties for hand behaviour

parent d2d14cbe
No related branches found
No related tags found
No related merge requests found
No preview for this file type
No preview for this file type
No preview for this file type
......@@ -1201,6 +1201,8 @@ void AMCController::SaveAnimation() {
AnimSaveState.Pawn = Pawn;
AnimSaveState.Pawn->GetAnimInstance()->DoFingers = bFingerTrackingEnabled;
AnimSaveState.Pawn->GetAnimInstance()->LockFeet = LockFeet;
AnimSaveState.Pawn->GetAnimInstance()->UseHandPos = UseHandPosition;
AnimSaveState.Pawn->GetAnimInstance()->LimitHandRot = LimitHandRotation;
AnimSaveState.Pawn->GetAnimInstance()->SnapshotAnimations.Empty();
AnimSaveState.FPS = FramesPerSecond;
......
......@@ -53,6 +53,12 @@ public:
UPROPERTY(BlueprintReadWrite)
bool LockFeet;
UPROPERTY(BlueprintReadWrite)
bool LimitHandRot;
UPROPERTY(BlueprintReadWrite)
bool UseHandPos;
virtual void NativeInitializeAnimation() override;
virtual void NativeUpdateAnimation(float DeltaSeconds) override;
......
......@@ -173,6 +173,12 @@ public:
UPROPERTY(EditAnywhere, meta = (DisplayName = "Lock Feet To Green Foot Indicators", Category = "MotionCapture"))
bool LockFeet = true;
UPROPERTY(EditAnywhere, meta = (DisplayName = "Use the captured hand position", Category = "MotionCapture"))
bool UseHandPosition = true;
UPROPERTY(EditAnywhere, meta = (DisplayName = "Limit the hand rotation (can cause rotational jumping)", Category = "MotionCapture"))
bool LimitHandRotation = false;
UPROPERTY(EditAnywhere, meta = (DisplayName = "Additional Post Processing Offsets", Category = "MotionCapture"))
FAdditionalOffsets AdditionalOffsets;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment