Skip to main content

Impact System

These components allow you to add features to colliders when impacted.

In this section, you will learn about the following components:

  • Hit Absorber
  • Hitting Object
  • Impact Object
  • Object Material

Hit Absorber

Hit Absorber

This component allows you to define an object that can be hit. (Example: a rock).

PropertyFunction
Min Force For HitMin force to be considered a hit
HealthTotal force to receive to raise the event
Receive Hits FromTag related to the objects that can hit the target
On Any Hit – Empty HealthUnity Events
EventsCustom Events
Remaining HealthRemaining health of the object

Hitting Object

Hitting Object

This component defines a hitting object, like an axe.

PropertyFunction
Hit DirectionTransform related to the hit direction
Min Force for HitMin force to be considered a hit
Hitting PartsList of parts with which the object can hit
On HitUnity Event

Impact Object

Impact Object

The Impact Object component manages the Object Material component. It is necessary for the impact system to work.

warning

If the object is grabbed, then it will not emit any sound.

PropertyFunction
Rigid BodyRigidbody component of the object
Velocity SamplesWhen the Rigid Body property is kinematic, this is the fallback value that is used for the impact
PartsList of Object Materials related to this impact object

Object Material

Object Material

The Object Material component assigns a behavior in terms of sound and physics to the list of colliders when they hit other colliders. The component should be referred by the Impact Object component in a scene.

PropertyFunction
Apply on Any SurfaceIf enabled, it behaves with any collider. Otherwise, it behaves only with other Object Materials
MaterialImpact Material that is assigned to colliders
CollidersList of colliders with the impact material component