Sixze / ALS-Refactored

Completely reworked and improved C++ version of Advanced Locomotion System V4.
MIT License
979 stars 273 forks source link

Camera Transform wasn't Smooth when Character Change Transfrom immediately #575

Open wantg opened 1 week ago

wantg commented 1 week ago

Describe the bug When Character Change Location/Rotation immediately like get on/off the Vechile, Camera Transform wasn't Smooth. Small team probably won’t be able to Create the animations of get on/off the Vechile. Hope to improve.

Code to test

// in AAlsCharacterExample
SetActorLocation(GetActorLocation() + FVector(200.0f, 200.0f, 50.0f));
FRotator RotationOffset(0.0f, FMath::RandRange(90.0f, 270.0f), 0.0f);
SetActorRotation(UKismetMathLibrary::ComposeRotators(GetActorRotation(), RotationOffset));