YouHow does PhysWalking step up onto ledges and update the floor?
AnswerHow PhysWalking resolves floor & step-upUCharacterMovementComponent::PhysWalking advances character movement in bounded sub-steps, keeping the capsule grounded across ramps and ledges.MoveAlongFloor projects horizontal velocity onto CurrentFloor and sweeps the capsule.When blocked by a vertical face, StepUp sweeps up by MaxStepHeight, forward, and back down.…3 source references
1 edit awaiting review
✎Edit to CharacterMovementComponent.cpp awaiting review+3−1
How PhysWalking resolves floor & step-up
Document·saved 12:54:01 AM·revision 2 of 2
Each sub-step in UCharacterMovementComponent::PhysWalking projects horizontal velocity onto the current floor plane, sweeps the capsule forward, and re-evaluates the floor before the next iteration.
3 / 4One walking sub-step in UCharacterMovementComponentpipeline
On a blocking wall hit, StepUp sweeps up, forward, and down onto the ledge.
Frame cost on GameThread
GameThread movement & physics shareprofile
UnrealEditor.exe · 0.82–1.46 s · GameThread · 4,820 samples
Function
Engine38%1.2%
Engine34%3.8%
Engine23%6.4%
Engine12%9.1%
Walkable slope projection
Movement along a ramp of normal n keeps horizontal speed by projecting Δx onto the tangent plane:
dramp=Δx−nzΔx⋅nz^,nz>cos(θmax)
This workspace is in Lightweight mode
Switch it to IDE to build, run, debug and profile it from Atlas. Atlas then runs the workspace's own build tools -- Unreal Build Tool for Unreal targets, MSBuild for a Visual Studio solution -- with your rights, as a terminal would. They can run project scripts and write wherever those write. Switching starts nothing, and agents cannot start builds.