OnComponentHit

Event called when a component hits (or is hit by) something solid.

Windows
MacOS
Linux

Syntax

FComponentHitSignature OnComponentHit

Remarks

Event called when a component hits (or is hit by) something solid. This could happen due to things like Character movement, using Set Location with 'sweep' enabled, or physics simulation. For events when objects overlap (e.g. walking into a trigger) see the 'Overlap' event.

For collisions during physics simulation to generate hit events, 'Simulation Generates Hit Events' must be enabled for this component.

When receiving a hit from another object's movement, the directions of 'Hit.Normal' and 'Hit.ImpactNormal' will be adjusted to indicate force from the other object against this object.

NormalImpulse will be filled in for physics-simulating bodies, but will be zero for swept-component blocking collisions.

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback