Knockback
Apply knockback force to players on impact.
Introduction
Knockback punches characters backward when they touch the object, the simple physics behind recoil pads and get-away-from-here zones. The Knockback component panel in the Uni editor Image The Knockback component panel in the Object editor. caption
How to Access
Select an object, open the Properties Panel, then press the Add Component button at the bottom and pick Knockback. The component stacks onto the object as a new accordion of properties. How to Access - Add Component in the Properties Panel
Another Way to Access
Shortcut: open the Asset Panel, go to the Device tab, Basic category, and click the Knockback block. The editor spawns a cube with Knockback already attached, ready to adjust. How to Access - the Knockback block in Asset Panel > Device > Basic
Properties
Is Active Bool Turns the component on or off. Knockback Distance Float How far the character gets flung back. Property Type Description Every property on the Knockback component.
Events
Knockback has no events.
Commands
Knockback has no commands.
Example
Knockback with the Moving component Knockback - Simple video