|
Payback 0.0.1
CK Graduation Project
|
#include <PlayerMovementComponent.h>


Public 멤버 함수 | |
| UPlayerMovementComponent () | |
| virtual void | TickComponent (float DeltaTime, ELevelTick TickType, FActorComponentTickFunction *ThisTickFunction) override |
| virtual void | CalcVelocity (float DeltaTime, float Friction, bool bFluid, float BrakingDeceleration) override |
| virtual float | GetMaxSpeed () const override |
| void | UpdateMovementInputRotation (const FRotator &MovementInputRotation) |
| void | SetLeaningEnabled (bool bEnabled) |
| float | GetRunSpeedAlpha () const |
| FORCEINLINE float | GetWalkSpeed () const |
| FORCEINLINE float | GetRunSpeed () const |
| FORCEINLINE float | GetCurrentMovementSpeed () const |
| FORCEINLINE bool | IsLeaningEnabled () const |
| FORCEINLINE float | GetLeanAngle () const |
| FORCEINLINE void | SetLeanAngle (const float Angle) |
| FORCEINLINE float | GetLeaningVelocity () const |
| FORCEINLINE void | SetExtraVelocity (const FVector &NewExtraVelocity) |
UCharacterMovementComponentBase(으)로부터 상속된 Public 멤버 함수 | |
| UCharacterMovementComponentBase () | |
| bool | RotateToActor (AActor *TargetActor, float DeltaTime, float TurnSpeed, float Tolerance, bool bIsSmoothTurn=true) |
| bool | RotateToLocation (const FVector &TargetLocation, float DeltaTime, float TurnSpeed, float Tolerance, bool bIsSmoothTurn=true) |
| void | BeginManualRotation () |
| void | EndManualRotation () |
Protected 멤버 함수 | |
| virtual FRotator | ComputeOrientToMovementRotation (const FRotator &CurrentRotation, float DeltaTime, FRotator &DeltaRotation) const override |
| virtual FVector | CalcAnimRootMotionVelocity (const FVector &RootMotionDeltaMove, float DeltaSeconds, const FVector &CurrentVelocity) const override |
| virtual void | PhysicsRotation (float DeltaTime) override |
| float | CalculateTargetLeanAngle (float DeltaTime, bool bIsMoved) const |
| void | UpdateLeaning (float DeltaTime, bool bIsMoved) |
| FORCEINLINE void | ResetMovementInputRotation () |
| FORCEINLINE float | GetAppliedMovementInputYawDelta () const |
UCharacterMovementComponentBase(으)로부터 상속된 Protected 멤버 함수 | |
| virtual void | BeginPlay () override |
| virtual void | EndPlay (const EEndPlayReason::Type EndPlayReason) override |
Protected 속성 | |
| float | MaxRunSpeed = 800.0f |
| FRuntimeFloatCurve | MovementSpeedCurve |
| float | CameraRotationFollowRatio = 1.0f |
| FRuntimeFloatCurve | TurnRateCurve |
| bool | bLeaningEnabled = true |
| bool | bBlockLean = false |
| bool | bShouldResetRotationOnBlock = true |
| float | TiltStrength = 12.0f |
| float | TiltSmoothTime = 0.17f |
| float | CameraLeanYawSpeedForMaxAngle = 360.0f |
| float | MovementLeanYawSpeedForMaxAngle = 70.0f |
| float | MovementThreshold = 1.0f |
| float | RootMotionInertiaBlendOutDuration = 0.1f |
| FVector | ExtraVelocity = FVector::ZeroVector |
Private 속성 | |
| float | CurrentMovementSpeed = 0.0f |
| float | LeanAngle = 0.0f |
| float | AppliedCameraYawDelta = 0.0f |
| float | AppliedMovementYawDelta = 0.0f |
| float | CameraFollowYawSpeed = 0.0f |
| float | MovementInputYawDelta = 0.0f |
| float | LastActorYaw = 0.0f |
| float | LastMovementInputYaw = 0.0f |
| float | LeaningVelocity = 0.0f |
| bool | bHasMovementInputRotation = false |
| bool | bHasLastActorYaw = false |
| UPlayerMovementComponent::UPlayerMovementComponent | ( | ) |
다음을 참조함 : MaxRunSpeed, MovementSpeedCurve, TurnRateCurve.
|
overrideprotectedvirtual |
다음을 참조함 : ExtraVelocity.
|
protected |
다음을 참조함 : AppliedCameraYawDelta, AppliedMovementYawDelta, CameraLeanYawSpeedForMaxAngle, MovementLeanYawSpeedForMaxAngle, TiltStrength.
다음에 의해서 참조됨 : UpdateLeaning().

|
overridevirtual |
다음을 참조함 : GetMaxSpeed(), GetRunSpeed(), ResetMovementInputRotation(), TurnRateCurve.

|
overrideprotectedvirtual |
다음을 참조함 : MovementThreshold.
|
inlineprotected |
다음에 의해서 참조됨 : PhysicsRotation().

|
inline |
|
inline |
|
inline |
|
overridevirtual |
다음을 참조함 : GetRunSpeed(), MovementSpeedCurve.
다음에 의해서 참조됨 : CalcVelocity().


|
inline |
| float UPlayerMovementComponent::GetRunSpeedAlpha | ( | ) | const |
다음을 참조함 : CurrentMovementSpeed, GetRunSpeed().

|
inline |
|
inline |
|
overrideprotectedvirtual |
다음을 참조함 : AppliedCameraYawDelta, GetAppliedMovementInputYawDelta(), MovementInputYawDelta.

|
inlineprotected |
다음에 의해서 참조됨 : CalcVelocity().

|
inline |
|
inline |
| void UPlayerMovementComponent::SetLeaningEnabled | ( | bool | bEnabled | ) |
다음을 참조함 : bLeaningEnabled, LeanAngle, LeaningVelocity.
다음에 의해서 참조됨 : AMainPlayerCharacter::ChangeAimState().

|
overridevirtual |
다음을 참조함 : AppliedCameraYawDelta, AppliedMovementYawDelta, bBlockLean, bHasLastActorYaw, bLeaningEnabled, bShouldResetRotationOnBlock, CurrentMovementSpeed, ExtraVelocity, LastActorYaw, LeanAngle, MovementThreshold, RootMotionInertiaBlendOutDuration, UpdateLeaning().

|
protected |
다음을 참조함 : CalculateTargetLeanAngle(), LeanAngle, LeaningVelocity, TiltSmoothTime.
다음에 의해서 참조됨 : TickComponent().


| void UPlayerMovementComponent::UpdateMovementInputRotation | ( | const FRotator & | MovementInputRotation | ) |
다음을 참조함 : bHasMovementInputRotation, LastMovementInputYaw, MovementInputYawDelta.
|
private |
다음에 의해서 참조됨 : CalculateTargetLeanAngle(), PhysicsRotation(), TickComponent().
|
private |
다음에 의해서 참조됨 : CalculateTargetLeanAngle(), TickComponent().
|
protected |
다음에 의해서 참조됨 : TickComponent().
|
private |
다음에 의해서 참조됨 : TickComponent().
|
private |
다음에 의해서 참조됨 : UpdateMovementInputRotation().
|
protected |
다음에 의해서 참조됨 : SetLeaningEnabled(), TickComponent().
|
protected |
다음에 의해서 참조됨 : TickComponent().
|
private |
|
protected |
이 카메라 Yaw 속도에서 카메라 회전 Lean이 최대 각도에 도달한다. 0이면 회전 중 즉시 최대 각도를 적용한다.
다음에 의해서 참조됨 : CalculateTargetLeanAngle().
|
protected |
카메라 기준 Yaw 변화량을 Lean에 반영하는 비율
|
private |
다음에 의해서 참조됨 : GetRunSpeedAlpha(), TickComponent().
|
protected |
다음에 의해서 참조됨 : CalcAnimRootMotionVelocity(), TickComponent().
|
private |
다음에 의해서 참조됨 : TickComponent().
|
private |
다음에 의해서 참조됨 : UpdateMovementInputRotation().
|
private |
다음에 의해서 참조됨 : SetLeaningEnabled(), TickComponent(), UpdateLeaning().
|
private |
다음에 의해서 참조됨 : SetLeaningEnabled(), UpdateLeaning().
|
protected |
달리기 최고 속도. MaxWalkSpeed(걷기 속도)에서 이 속도까지 가속한다.
다음에 의해서 참조됨 : UPlayerMovementComponent().
|
private |
다음에 의해서 참조됨 : PhysicsRotation(), UpdateMovementInputRotation().
|
protected |
이 실제 이동 Yaw 속도에서 키보드 회전 Lean이 최대 각도에 도달한다. 0이면 회전 중 즉시 최대 각도를 적용한다.
다음에 의해서 참조됨 : CalculateTargetLeanAngle().
|
protected |
X축 정규화 이동 속도(0~1, MaxRunSpeed 대비)를 Y축 MaxWalkSpeed에 곱할 속도 배율로 변환한다. Y=1이면 MaxWalkSpeed, Y=MaxRunSpeed/MaxWalkSpeed면 MaxRunSpeed에 도달한다.
다음에 의해서 참조됨 : GetMaxSpeed(), UPlayerMovementComponent().
|
protected |
이동 중으로 판단할 수평 속도 임계값
다음에 의해서 참조됨 : ComputeOrientToMovementRotation(), TickComponent().
|
protected |
다음에 의해서 참조됨 : TickComponent().
|
protected |
다음에 의해서 참조됨 : UpdateLeaning().
|
protected |
회전 방향 쪽으로 기울어지는 최대 각도. 실제로는 +TiltStrength(오른쪽 회전) / -TiltStrength(왼쪽 회전)로 적용된다.
다음에 의해서 참조됨 : CalculateTargetLeanAngle().
|
protected |
X축 정규화 이동 속도(0~1, 최대 이동 속도 대비)를 Y축 최대 방향 전환 각속도(deg/s)로 변환한다. 매 틱 속도 벡터를 입력 방향으로 이 각속도만큼 회전시키고, 아직 남은 각도가 클수록(코너가 급할수록) 목표 속도를 cos(남은 각도)만큼 깎는다. 값이 크면(저속) 몇 틱 안에 정렬이 끝나 감속 후 제자리 회전처럼 보이고, 값이 작으면(고속) 정렬에 여러 틱이 걸려 그 사이 감속되며 호를 그리는 코너가 된다. 정반대 방향 입력도 각도(180도)만 다를 뿐 동일한 수식으로 처리되어 고속에서는 유턴 코너가 된다.
다음에 의해서 참조됨 : CalcVelocity(), UPlayerMovementComponent().