Navigation
API > API/Runtime > API/Runtime/Engine
Inheritance Hierarchy
- FSimCallbackInput
- FCharacterMovementComponentAsyncInput
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/CharacterMovementComponentAsync.h |
| Include | #include "CharacterMovementComponentAsync.h" |
Syntax
struct FCharacterMovementComponentAsyncInput : public Chaos::FSimCallbackInput
Remarks
Contains all input and implementation required to run async character movement. Base implementation is from CharacterMovementComponent. Contains 'CharacterInput' and 'UpdatedComponentInput' represent data/impl of Character and our UpdatedComponent. All input is const, non-const data goes in output. 'AsyncSimState' points to non-const sim state.
Variables
| Type | Name | Description | |
|---|---|---|---|
| float | AirControl | ||
| float | AirControlBoostMultiplier | ||
| float | AirControlBoostVelocityThreshold | ||
| TSharedPtr< FCharacterMovementComponentAsyncOutput, ESPMode::ThreadSafe > | AsyncSimState | This is the latest simulated state of this movement component. | |
| bool | bAllowPhysicsRotationDuringAnimRootMotion | ||
| bool | bAlwaysCheckFloor | ||
| bool | bApplyGravityWhileJumping | ||
| bool | bCanEverCrouch | ||
| bool | bCanWalkOffLedges | ||
| bool | bCanWalkOffLedgesWhenCrouching | ||
| bool | bConstrainToPlane | ||
| bool | bDeferUpdateMoveComponent | ||
| bool | bForceMaxAccel | ||
| bool | bHasValidData | ||
| bool | bIgnoreBaseRotation | ||
| bool | bInitialized | Has this been filled out? | |
| bool | bIsNetModeClient | ||
| bool | bMaintainHorizontalGroundVelocity | ||
| bool | bMovementStateCanJump | ||
| bool | bNavAgentPropsCanJump | ||
| bool | bOrientRotationToMovement | ||
| float | BrakingDecelerationFalling | ||
| float | BrakingDecelerationFlying | ||
| float | BrakingDecelerationSwimming | ||
| float | BrakingDecelerationWalking | ||
| float | BrakingFriction | ||
| float | BrakingFrictionFactor | ||
| float | BrakingSubStepTime | ||
| bool | bRequestedMoveUseAcceleration | ||
| bool | bRunPhysicsWithNoController | ||
| bool | bUseControllerDesiredRotation | ||
| bool | bUseFlatBaseForFloorChecks | ||
| bool | bUseSeparateBrakingFriction | ||
| bool | bWasSimulatingRootMotion | ||
| FCollisionQueryParams | CapsuleParams | ||
| TUniquePtr< FCharacterAsyncInput > | CharacterInput | ||
| ECollisionChannel | CollisionChannel | ||
| FCollisionResponseParams | CollisionResponseParams | ||
| EMovementMode | DefaultLandMovementMode | ||
| float | FallingLateralFriction | ||
| float | GravityZ | ||
| float | GroundFriction | ||
| FCharacterMovementGTInputs | GTInputs | ||
| FVector | InputVector | ||
| float | JumpZVelocity | ||
| float | LedgeCheckThreshold | ||
| float | MaxAcceleration | ||
| float | MaxCustomMovementSpeed | ||
| float | MaxDepenetrationWithGeometry | ||
| float | MaxDepenetrationWithGeometryAsProxy | ||
| float | MaxDepenetrationWithPawn | ||
| float | MaxDepenetrationWithPawnAsProxy | ||
| float | MaxFlySpeed | ||
| int32 | MaxJumpApexAttemptsPerSimulation | ||
| int32 | MaxSimulationIterations | ||
| float | MaxSimulationTimeStep | ||
| float | MaxStepHeight | ||
| float | MaxSwimSpeed | ||
| float | MaxWalkSpeed | ||
| float | MaxWalkSpeedCrouched | ||
| float | MinAnalogWalkSpeed | ||
| FCachedMovementBaseAsyncData | MovementBaseAsyncData | ||
| ENetworkSmoothingMode | NetworkSmoothingMode | ||
| float | PerchAdditionalHeight | ||
| float | PerchRadiusThreshold | ||
| float | PhysicsVolumeTerminalVelocity | ||
| FVector | PlaneConstraintNormal | ||
| FVector | PlaneConstraintOrigin | ||
| FComponentQueryParams | QueryParams | Primitive component InitSweepCollisionParams | |
| FRandomStream | RandomStream | ||
| FRootMotionAsyncData | RootMotion | ||
| FRotator | RotationRate | ||
| TUniquePtr< FUpdatedComponentAsyncInput > | UpdatedComponentInput | ||
| float | WalkableFloorZ | ||
| UWorld * | World |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | |||
| void | ApplyAccumulatedForces
(
float DeltaSeconds, |
||
| bool | ApplyRequestedMove
(
float DeltaTime, |
||
| void | ApplyRootMotionToVelocity
(
float deltaTime, |
||
| void | ApplyVelocityBraking
(
float DeltaTime, |
||
| float | BoostAirControl
(
float DeltaTime, |
||
| FVector | CalcAnimRootMotionVelocity
(
const FVector& RootMotionDeltaMove, |
||
| void | CalcVelocity
(
float DeltaTime, |
||
| bool | CanAttemptJump
(
FCharacterMovementComponentAsyncOutput& Output |
||
| bool | |||
| bool | CanStepUp
(
const FHitResult& Hit, |
||
| bool | |||
| bool | CheckFall
(
const FFindFloorResult& OldFloor, |
||
| bool | CheckLedgeDirection
(
const FVector& OldLocation, |
||
| void | |||
| float | ComputeAnalogInputModifier
(
FVector Acceleration |
||
| void | ComputeFloorDist
(
const FVector& CapsuleLocation, |
||
| FVector | ComputeGroundMovementDelta
(
const FVector& Delta, |
||
| FRotator | ComputeOrientToMovementRotation
(
const FRotator& CurrentRotation, |
||
| bool | ComputePerchResult
(
const float TestRadius, |
||
| FVector | ComputeSlideVector
(
const FVector& Delta, |
||
| FVector | ConstrainAnimRootMotionVelocity
(
const FVector& RootMotionVelocity, |
Root Motion Stuff. | |
| FVector | ConstrainDirectionToPlane
(
FVector Direction |
||
| FVector | ConstrainInputAcceleration
(
FVector InputAcceleration, |
||
| FVector | ConstrainLocationToPlane
(
FVector Location |
||
| FVector | ConstrainNormalToPlane
(
FVector Normal |
||
| void | ControlledCharacterMove
(
const float DeltaSeconds, |
TODO organize these. | |
| bool | DoJump
(
bool bReplayingMoves, |
||
| void | FindFloor
(
const FVector& CapsuleLocation, |
||
| bool | FloorSweepTest
(
FHitResult& OutHit, |
||
| FVector | GetAirControl
(
float DeltaTime, |
||
| FVector | GetFallingLateralAcceleration
(
float DeltaTime, |
||
| FVector | GetLedgeMove
(
const FVector& OldLocation, |
||
| float | |||
| float | GetMaxSpeed
(
FCharacterMovementComponentAsyncOutput& Output |
||
| float | |||
| FCollisionShape | GetPawnCapsuleCollisionShape
(
const EShrinkCapsuleExtent ShrinkMode, |
||
| FVector | GetPawnCapsuleExtent
(
const EShrinkCapsuleExtent ShrinkMode, |
||
| FVector | GetPenetrationAdjustment
(
FHitResult& HitResult |
||
| float | |||
| const FRotator & | GetRotationRate
(
const FCharacterMovementComponentAsyncOutput& Output |
||
| float | GetSimulationTimeStep
(
float RemainingTime, |
||
| ETeleportType | |||
| float | GetValidPerchRadius
(
const FCharacterMovementComponentAsyncOutput& Output |
||
| void | HandleImpact
(
const FHitResult& Impact, |
||
| FVector | HandleSlopeBoosting
(
const FVector& SlideResult, |
||
| void | HandleWalkingOffLedge
(
const FVector& PreviousFloorImpactNormal, |
||
| void | Initialize () |
||
| bool | IsCrouching
(
const FCharacterMovementComponentAsyncOutput& Output |
||
| bool | IsExceedingMaxSpeed
(
float MaxSpeed, |
||
| bool | IsFalling
(
const FCharacterMovementComponentAsyncOutput& Output |
||
| bool | IsFlying
(
const FCharacterMovementComponentAsyncOutput& Output |
||
| bool | UNavMovementComponent (super class) impl. | ||
| bool | IsMovingOnGround
(
const FCharacterMovementComponentAsyncOutput& Output |
||
| bool | IsValidLandingSpot
(
const FVector& CapsuleLocation, |
||
| bool | IsWalkable
(
const FHitResult& Hit |
||
| bool | IsWithinEdgeTolerance
(
const FVector& CapsuleLocation, |
||
| FVector | LimitAirControl
(
float DeltaTime, |
||
| void | |||
| void | MaybeUpdateBasedMovement
(
float DeltaSeconds, |
||
| void | MoveAlongFloor
(
const FVector& InVelocity, |
||
| FVector | MoveComponent_ComputeSlideVector
(
const FVector& Delta, |
||
| FVector | MoveComponent_GetPenetrationAdjustment
(
FHitResult& HitResult |
More from UMovementComponent, this is not impl ported from CharacterMovementComponent, but super class, so we can call Super:: in CMC impl. | |
| float | MoveComponent_SlideAlongSurface
(
const FVector& Delta, |
||
| bool | MoveUpdatedComponent
(
const FVector& Delta, |
||
| FVector | NewFallVelocity
(
const FVector& InitialVelocity, |
||
| void | OnCharacterStuckInGeometry
(
const FHitResult* Hit, |
||
| void | OnMovementModeChanged
(
EMovementMode PreviousMovementMode, |
||
| void | PerformMovement
(
float DeltaSeconds, |
||
| void | PhysFalling
(
float deltaTime, |
||
| void | PhysicsRotation
(
float DeltaTime, |
||
| void | PhysWalking
(
float deltaTime, |
||
| void | ProcessLanded
(
const FHitResult& Hit, |
||
| void | Reset () |
||
| bool | ResolvePenetration
(
const FVector& Adjustment, |
||
| void | |||
| void | RevertMove
(
const FVector& OldLocation, |
||
| bool | SafeMoveUpdatedComponent
(
const FVector& Delta, |
||
| FVector | ScaleInputAcceleration
(
FVector InputAcceleration, |
||
| void | SetBaseFromFloor
(
const FFindFloorResult& FloorResult, |
||
| void | |||
| void | SetMovementMode
(
EMovementMode NewMovementMode, |
||
| void | SetPostLandedPhysics
(
const FHitResult& Hit, |
||
| bool | ShouldCatchAir
(
const FFindFloorResult& OldFloor, |
||
| bool | ShouldCheckForValidLandingSpot
(
float DeltaTime, |
||
| bool | ShouldComputeAccelerationToReachRequestedVelocity
(
const float RequestedSpeed, |
||
| bool | ShouldComputePerchResult
(
const FHitResult& InHit, |
||
| bool | ShouldLimitAirControl
(
float DeltaTime, |
||
| bool | |||
| void | Simulate
(
const float DeltaSeconds, |
Entry point of async tick. | |
| float | SlideAlongSurface
(
const FVector& Delta, |
||
| void | StartFalling
(
int32 Iterations, |
||
| void | StartNewPhysics
(
float deltaTime, |
||
| bool | StepUp
(
const FVector& GravDir, |
||
| void | TwoWallAdjust
(
FVector& OutDelta, |
||
| void | |||
| void | UpdateBasedMovement
(
float DeltaSeconds, |
||
| void | UpdateCharacterStateAfterMovement
(
float DeltaSeconds, |
Typedefs
| Name | Description |
|---|---|
| FCharacterInput | |
| FUpdatedComponentInput |