Shake provides sustained camera, item, or character-force feedback for damage, impacts, explosions, and environmental vibration. Its historical URL is earthquake; the Version 3 Inspector type is Shake.
Configure short damage feedback
- Add Shake under Ultimate Character Locomotion > Effects on the character root and select its enabled row.
- Set Inspector Description: Damage Feedback. Choose Target: Camera, Item and clear Character for presentation-only feedback.
- Attach the character’s Camera Controller and provide supported first-person-item or Character IK listeners for item/hand feedback.
- Start with Force (0.4, 0.4), Smooth Horizontal Force enabled, Vertical Force Probability 0.3, Positional Factor 1, and Rotational Factor 3.
- Set Fade Out Duration 1 and Duration 2 for a short test. On Character Health, select Damaged Effect: Shake and Damaged Effect Index -1 for the first matching Shake.
- Damage the character in Play Mode. Its row should show (Active), camera/item feedback should appear, and the character should retain its ordinary movement.
With simulation running, the active label should clear after about two unscaled seconds. Sequence Character Effects one at a time. Use the Effects overview for alternative triggers, duplicate indices, shared State settings, and lifecycle ownership.
Choose targets and force
| Target | Destination | Setup |
|---|---|---|
| Camera | Position/rotation force on the attached Camera Controller’s View Types. | Attach the intended camera. |
| Item | Secondary-force event with Slot ID -1 for supported item and IK springs. | Equip a listening first-person item or configure Character IK hand springs. |
| Character | Horizontal locomotion force; the generated vertical component is cleared. | Use only where local movement force is intended and authoritative ownership is handled. |

Select at least one Target flag. Attach the corresponding camera/listeners before judging visible feedback; test the targets independently when diagnosing an apparent lack of motion.
| Field | New-effect default | Purpose |
|---|---|---|
| Target | Camera, Item, Character | Combine the destinations above. Clear Character for presentation-only feedback. |
| Force | (0.4, 0.4) | Base horizontal and vertical magnitudes. |
| Smooth Horizontal Force | Enabled | Use smooth random horizontal motion; disabled produces sharper alternating impulses. |
| Vertical Force Probability | 0.3 | Probability of applying vertical force on an update. |
| Fade Out Duration | 4 | Cap the remaining-time multiplier, then reduce it near expiry. |
| Positional Factor | 1 | Scale camera position and Character force; Item uses its own scale. |
| Rotational Factor | 3 | Scale Camera rotation force; the camera receives twice this factor times the negative generated force. |
| Duration | 7 seconds | Unscaled lifetime, checked during character simulation. |
Tune Force and Fade Out Duration together. For a normalized-looking initial pass, keep Fade Out Duration at or below 1; larger values also raise the force-multiplier cap. Camera View Types own their spring response, so compare each supported perspective.
Coordinate timing and ownership
A start records unscaled time, clears accumulated-force history, and activates the configured State. While active, another start leaves the existing motion and duration unchanged. Wait for completion before accepting the next trigger, or use a project-specific feedback system when stacking/retriggering is required.
Expiry is processed on a character simulation update. Suspended simulation postpones that check; after resuming, elapsed unscaled time can make Shake stop immediately. The smooth horizontal branch applies global/character time scale, while the sharp horizontal and vertical branches use their unscaled force calculation. Test slow motion and pause explicitly; use a custom Effect for a different time policy.
Stopping through the controller or disabling the row clears the State. An ability’s start trigger supplies no automatic stop relationship, so retain Shake’s duration or add an explicit stop owner.
For multiplayer, replicate the damage/impact event and start local Camera/Item presentation for each intended observer. Keep authoritative displacement in a networked gameplay system. Character Effects do not synchronize themselves.
Verify targets, fade, and re-entry
- Trigger once and confirm only the selected destinations move. Clear Character if the character drifts during visual feedback.
- Confirm fading, active-label clearance, and State cleanup at Duration while simulation runs. Trigger again after it becomes inactive.
- Pause beyond Duration, resume, and confirm the intended stop policy. Test slow motion separately with the chosen horizontal mode.
- Compare perspectives and actual equipped-item/IK listeners. Keep the same force configuration when isolating their responses.
- Test the owner and intended network observers separately; each should receive only the explicitly routed presentation.
Shake exposes the fields above as public properties. Retrieve a configured non-null instance with GetEffect<Shake>() or its absolute-index overload, then use TryStartEffect / TryStopEffect. The internal item secondary-force message is per-update feedback. Use lifecycle overrides for start/stop notifications; see the Effects API, Camera, and State System.