How do I
Play an effect where a collision hits
Set a Pass Forge Moment's Play On to Collision Enter or Trigger Enter and keep At Contact Point on, so its rings, sparks and spreading ice start where the other object touched.
You want
A boulder hits a wall and the shockwave and flash start at the point of impact, or an arrow strikes a shield and the sparks fly from where it struck, not from the middle of the object.
Steps
- Add Add Component > Pass Forge > Moment to the object that gets hit, such as the wall or the shield.
- Pick a ready made moment in Preset, such as an explosion or a hit, or add your own steps with Add Step.
- Set Play On to Collision Enter, or to Trigger Enter for a trigger collider.
- Set Tag to the tag that should start it, such as Projectile. Untagged lets any object start it.
- Keep At Contact Point on. Off, the moment plays at this object's position.
- Read the note under Play On. It warns when the object has no collider, or when Trigger Enter needs Is Trigger on.
- Set Cooldown so a body that bounces does not play the moment on every touch.

What you should see
A collision plays the moment at its first contact. A trigger plays it at the point of this object's collider nearest to the other object. The steps that play where the moment plays, such as shockwaves, flash lights and a Highlight For Seconds fill that spreads from a point, start there.
If it does not work
- Nothing plays. Unity reports a touch only when one of the two objects has a Rigidbody or a Character Controller. Check Tag too.
- It plays on every bounce. Collision Enter plays on each touch. Raise Cooldown, or set Max Plays to 1.
- A grenade's flash goes off where it first bounced. A moment that plays on Collision Enter with a Delay keeps the place of the first touch. For a fuse, set Play On to Script Or Event and play it from the grenade's own script when the fuse runs out, with
Play()orPlayAt(transform.position). - The project has no Physics module. The inspector says nothing can touch the object without the Physics or the Physics 2D module.
- A flashbang or shake is skipped behind a wall. Blocked By uses 3D colliders. Walls with only 2D colliders stop no step.
From a script
using PassForge.Effects;
using UnityEngine;
public class Shield : MonoBehaviour
{
[SerializeField] PassForgeMoment m_Spark; // Play On: Script Or Event
void OnCollisionEnter(Collision collision)
{
// The same as At Contact Point, from your own code.
m_Spark.PlayAt(collision.GetContact(0).point);
}
}
moment.atContactPoint switches At Contact Point from a script. PassForgeMoment.PlayNamedAt("Bullet Hit", point) plays every enabled moment named Bullet Hit at a point, with no reference.