Springs add responsive camera and item motion without requiring an animation clip. Use them for movement sway, landing impact, recoil, and other motion that should return to a rest position or rotation.

Spring-driven first-person camera and item motion returning toward rest

Find the spring controls

The same Spring controls appear inside several Ultimate Character Controller features. Start with the object whose motion you want to change:

  1. For camera motion, select the camera with the Camera Controller component, expand View Types, and select the active first- or third-person View Type.
  2. Expand Primary Spring to tune regular position and rotation response. Expand Secondary Spring for brief reactions such as recoil.
  3. For first-person item motion, select the item object with the First Person Perspective Item component and expand its Position Spring, Rotation Spring, or pivot spring.
  4. Enter Play Mode with the supplied values first. Change one spring and one axis at a time so that authored animation, head motion, bob, and shake are not mistaken for spring motion.

Choose the motion source

Desired result Controls to use Why
Regular camera or item response while moving Primary Spring Its Position and Rotation Springs handle continuous motion around their rest values.
Recoil or another brief impulse Secondary Spring It is intended to receive a short force and return to equilibrium.
A repeatable walking rhythm Bob Rate sets how quickly the cycle repeats; amplitude sets how far it moves.
Irregular breathing, instability, or camera shake Shake Speed and amplitude generate continuous smooth variation rather than a repeating cycle.
A deliberate pose or repeatable action such as reloading An animation clip, optionally combined with subtle procedural motion Springs react to forces; they do not replace authored action timing.

Bob

Bob adds sinusoidal motion to the first-person camera or item. A small vertical amplitude can suggest footsteps, while carefully balanced horizontal and vertical amplitudes can make a large character feel heavier.

Sinusoidal position and rotation bob applied to first-person motion

Use Bob Positional Rate and Bob Roll Rate for frequency, and use their amplitude fields for strength. Bob Input Velocity Scale changes how strongly character speed feeds the effect, while Bob Max Input Velocity prevents extreme movement speeds from producing extreme bob. Keep Bob Require Ground Contact enabled when normal walking bob should stop in the air.

Shake

Shake adds smooth, irregular rotation to the first-person view. It is useful for restrained breathing motion, status effects, or a brief unstable-camera presentation, but large continuous values can make the view uncomfortable.

Irregular procedural shake applied to a first-person camera or item

Use Shake Speed to change how quickly the variation develops and Shake Amplitude to limit its strength on each axis. Start with a very small amplitude and test while moving and aiming, not only while idle.

Tune a spring

Expand a Spring property to reveal its shared settings:

Expanded Spring Inspector with stiffness, damping, velocity, and value limits

Setting What it changes in Version 3
Stiffness Controls the pull toward the rest value. The current calculation uses 1 - Stiffness, so a lower value produces a stronger return and a higher value produces a weaker return.
Damping Multiplies the remaining velocity on every update. A lower value removes velocity faster; a higher value preserves it longer and can allow more oscillation.
Velocity Fade In Length Scales newly applied forces from zero to their full strength for this duration after the spring initializes, reducing an abrupt start.
Max Soft Force Frames Limits how many frames a soft force can be distributed across. More frames spread the same force over a longer interval.
Min Velocity Sets the final snap-to-rest tolerance. Increase it slightly when tiny residual movement takes too long to finish.
Max Velocity Caps the magnitude of the spring velocity so a large force cannot produce an unlimited response.
Min Value and Max Value Clamp the resulting position or rotation on each axis. Use them as safety limits, not as the main way to shape the motion.

Because Stiffness and Damping follow the shipped Spring calculation, their tuning direction may be different from what their everyday names suggest. Change one of them at a time and judge the complete return-to-rest motion in Play Mode.

Tune common scenarios

Recoil

Use the Secondary Position or Rotation Spring for the short impulse. Begin with a small force, lower Damping if the camera or item keeps ringing, and use value limits to prevent an extreme kick. The motion should return to its original framing without a lasting offset.

Landing impact

On a first-person camera, Position Fall Impact pushes the position spring when the character lands, and Rotation Fall Impact adds roll. Their Softness fields distribute that force across a number of frames. Increase softness for a less abrupt reaction; reduce the impact values if normal jumps are distracting.

Movement sway

Use the primary position and rotation springs for regular camera or first-person item response. On an item, the sway, slide, and input-velocity fields determine which character movement feeds those springs. Establish the spring return first, then introduce look sway, strafe sway, or slide one source at a time.

Heavy footsteps

Use Bob for the repeating step rhythm. The camera’s Bob Min Trough Vertical Offset identifies the lower part of the cycle, and Bob Trough Force can add a short secondary reaction there. Keep the force small and verify it at every supported movement speed.

Verify in Play Mode

  1. Stand still after the character and camera initialize. The tested object should settle at its rest position or rotation without drifting.
  2. Walk, run, strafe, jump, and land. Regular motion should remain controlled and return to rest after input stops.
  3. Trigger recoil or the feature that adds a secondary force. The impulse should be readable, then finish without a permanent offset or repeated vibration.
  4. Test the lowest and highest supported movement speeds. Bob and sway should not grow beyond the intended range.
  5. Switch perspectives, equip and unequip items, and pause or change the character time scale if those actions are supported. Motion should resume from a stable state rather than carrying an unrelated force into the new state.
  6. Repeat the test while aiming at a small target. The effect should communicate motion without obscuring gameplay or making the camera uncomfortable.

Troubleshooting

Symptom Check Fix
Motion oscillates for too long. Damping may be preserving too much velocity, or several motion sources may be active together. Lower Damping, then disable bob, shake, and authored motion temporarily to isolate the spring.
The object returns too slowly. A high Stiffness weakens the return in the Version 3 calculation. Lower Stiffness in small steps and retest the full motion.
Motion snaps when the scene starts. Velocity Fade In Length may be too short for forces applied immediately after initialization. Increase the fade-in length and replay the scene from its initial state.
A landing or other event snaps. Its soft force may be applied across too few frames. Increase that feature’s Softness value without changing the total force, then repeat the event.
Tiny movement never appears to finish. The Min Velocity snap-to-rest tolerance may be too small, or another bob or shake source may still be running. Increase the tolerance slightly and isolate the other procedural motion groups.
Fast movement produces a large sway or bob spike. Input velocity may be scaled too strongly or allowed to grow too high. Reduce the relevant input velocity scale and set a suitable maximum input velocity.
Walking bob continues while airborne. Bob Require Ground Contact is disabled. Enable it when bob should be driven only by grounded movement.
A spring does not move. The force or amplitude may be zero, the value may already be clamped, or the character or global time scale may be zero. Confirm the source value, limits, active View Type or item, and time scale before changing the spring response.

Developer reference

Spring is initialized as positional or rotational and schedules its update in either Update or Fixed Update. Each update pulls the current value toward RestValue, multiplies the accumulated velocity by Damping, clamps the velocity and value, and resets when the remaining distance is within Min Velocity. A soft force divides its total force across the requested number of frames, capped by Max Soft Force Frames. Spring updates stop while the spring’s local time scale or the global TimeUtility.TimeScale is zero.