Skip to content

Commit

Permalink
#231 Fixed invalid initial rotation angle (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
xthebat authored Mar 8, 2024
1 parent 23683b1 commit 807df3c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Binary file modified Content/Maps/warmup.umap
Binary file not shown.
Binary file modified Content/Physicals/PM_Character.uasset
Binary file not shown.
10 changes: 6 additions & 4 deletions Source/Cloud9/Character/Components/Cloud9CharacterMovement.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,15 @@ class CLOUD9_API UCloud9CharacterMovement : public UCharacterMovementComponent
FActorComponentTickFunction* ThisTickFunction
) override;

protected:
/** Target rotator of character*/
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category=State)
FRotator TargetRotator;

private:
static constexpr float RotationLagScale = 360.0f;

/** Character rotation lag*/
UPROPERTY(Category="Character Movement (Rotation Settings)", EditDefaultsOnly)
UPROPERTY(EditDefaultsOnly, Category=Config)
float RotationLag;

/** Target rotator of character*/
FRotator TargetRotator;
};

0 comments on commit 807df3c

Please sign in to comment.