Tune first-person motion¶
In first person, the hands and the held item react to the player: they lag behind when the view turns, lean into strafes, bob with the steps, breathe at rest and take a jolt on jumps and landings. While aiming down sights the motion fades so the sight stays steady. The camera itself never moves, which keeps the view comfortable. The motion works in all three first-person modes and on the retargeted characters, and only the local player sees it. Background: First person system.
Where the settings are¶
All the values live in motion profiles, data assets of the class PDA_FirstPersonMotion in /GASPALS/Systems/FirstPersonSystem/Motion. Four ship with the template:
| Profile | Feel | Used by |
|---|---|---|
DA_FPMotion_Unarmed | Loose | Empty hands (the pawns' default) |
DA_FPMotion_Pistol | Light | Pistol, revolver, torch, binoculars |
DA_FPMotion_Rifle | Medium (the class defaults) | Rifle |
DA_FPMotion_Bow | Medium, with a wider bob and a bob roll | Bow |
DA_FPMotion_Heavy | Slow and heavy | Box, barrel |
Which profile is active:
- The equipped item's First Person Motion Profile (on its
DA_Equipment_*data asset in/GASPALS/Systems/EquipmentSystem/Data, category Equipment > First Person), when set. - Otherwise the First Person Motion Profile on the pawn's AC_FirstPersonSystem component (First Person > Motion). It applies to every character the pawn shows. Set it on both sample pawns (
SandboxCharacter_MoverandSandboxCharacter_CMC).
Open a profile (double-click it) and change its values while playing in the editor: the change shows at once. Save the profile to keep it.
Check what is active¶
Turn Debug First Person Motion (First Person > Debug) on, on the pawn's AC_FirstPersonSystem, and play in first person: the motion pivot and targets are drawn, and the active profile, the targets, the view turn rate and the aim amount are printed on screen. If the pawn has no profile at all, an orange warning says so and the hands do not move. Turn the setting off again when you are done.
Recipes¶
Make an item feel heavier or lighter¶
| Setting | Heavier | Lighter |
|---|---|---|
| Position Strength / Rotation Strength (Hz) | lower (1 to 1.2) | higher (1.8 to 2.5) |
| Look Rotation Per Degree | higher | lower |
| Look Max Rotation | higher | lower |
| Position Damping / Rotation Damping | higher (0.9 to 1: no wobble) | lower (0.6 to 0.8: a little overshoot) |
The strengths are how many times per second the hands could swing back; the damping decides whether they overshoot (below 1) or settle smoothly (1). For reference, DA_FPMotion_Heavy uses 1.1 / 1.4 Hz and 0.9 damping, DA_FPMotion_Pistol 1.8 / 2.2 Hz and 0.8.
Less or no sway when turning¶
Lower Look Rotation Per Degree and Look Position Per Degree, or turn Look Sway off. To keep slow aiming steady but let fast flicks swing, make the start of Look Response Curve flat.
Less or no sway when strafing¶
Lower Move Roll Per Speed and Move Side Offset Per Speed, or turn Move Sway off.
Change the steps¶
Bob Stride Length is the distance of one bob cycle (two steps). Bob Side Amplitude, Bob Up Amplitude and Bob Roll Amplitude set the size, Bob Speed Curve how it grows with speed. Bob Shape Side, Bob Shape Up and Bob Shape Roll draw the path over one cycle (X = phase 0 to 1, Y = -1 to 1): the default makes a figure eight with one dip per step. Turn Bob off for no bob.
Steadier or looser aiming¶
While aiming, every source is multiplied by its ADS scale: ADSLook Scale, ADSMove Scale, ADSBob Scale, ADSBreathing Scale and ADSImpulse Scale (0 = none while aiming). ADSMotion Settle Speed makes leftover motion die out faster when you start aiming (2 = twice as fast; higher = less motion; 1 = no change). ADSBlend Curve shapes the change as the aim comes up. For a scope with deliberate sway, raise ADSBreathing Scale on that item's profile.
Jumps and landings¶
Jump Position Impulse / Jump Rotation Impulse and Landing Position Impulse / Landing Rotation Impulse are the kicks (cm/s and degrees/s); Landing Curve scales the landing kick by fall speed, so small hops barely show. Turn Jump Impulse or Landing Impulse off to remove one.
Players sensitive to motion¶
First Person Motion Intensity (First Person > Motion) on the pawn's AC_FirstPersonSystem scales all of it: 1 = as the profiles say, 0 = off. Bind it to an options menu to let players choose: get the pawn's AC_FirstPersonSystem component and set First Person Motion Intensity on it.
Pause the motion during an animation¶
Add a curve named disable_fp_motion to the animation of a montage the character plays (in the animation editor: Curves > Add Curve; 1 = motion off, 0 = on). The motion fades with the curve, which keeps it from fighting reload or interaction hand animation.
Give an item its own feel¶
- Duplicate the closest profile (for example
DA_FPMotion_Rifle), name itDA_FPMotion_<Item>, and tune it. - Set it as First Person Motion Profile on the item's
DA_Equipment_*data asset and save both. - Play in first person, equip the item (hold T, scroll, release), then turn, strafe, walk, jump and aim (Right Button) to check the feel.
Setting reference¶
Every setting has a tooltip in the editor. Each group is a category (First Person > Motion >
| Group | Settings |
|---|---|
| Springs | Position Strength (1.6 Hz), Rotation Strength (2 Hz), Position Damping / Rotation Damping (0.85), Pivot Offset ((0, 30, -10): the point the hands rotate around, from the eyes; it blends to the eyes while aiming) |
| Look | Look Sway (on), Look Rotation Per Degree (0.02), Look Roll from Yaw (0.3), Look Position Per Degree (0.005), Look Max Rate (400 degrees/s), Look Max Rotation (6), Look Max Position (2), Look Response Curve |
| Move | Move Sway (on), Move Roll Per Speed (1.5), Move Side Offset Per Speed (0.6), Move Back Offset Per Speed (0.4), Move Max Rotation (5), Move Max Position (3) |
| Bob | Bob (on), Bob Stride Length (140), Bob Side Amplitude (1), Bob Up Amplitude (0.8), Bob Roll Amplitude (1.5), Bob Speed Curve, Bob Shape Side / Up / Roll |
| Breathing | Breathing (on), Breathing Position (0.15), Breathing Rotation (0.3), Breathing Rate (0.25 breaths per second) |
| Impulses | Jump Impulse (on), Jump Position Impulse ((0, 0, -25)), Jump Rotation Impulse ((-40, 0, 0)), Landing Impulse (on), Landing Position Impulse ((0, 0, -60)), Landing Rotation Impulse ((-80, 0, 0)), Landing Curve |
| Stance | Crouch Scale (0.6: motion scale while crouched) |
| ADS | ADSLook Scale (0.1), ADSMove Scale (0.1), ADSBob Scale (0), ADSBreathing Scale (0), ADSImpulse Scale (0.3), ADSMotion Settle Speed (2), ADSBlend Curve |
Rotations are pitch, yaw, roll in degrees; positions are right, forward, up in cm, as seen from the eyes. Per-speed values are per meter per second of movement; per-degree values are per degree per second of view turn.