# Trigger

Class · category: Physics

Source: https://github.com/playcanvas/engine/blob/970d89f6d3bc6667f4e1f88153abd6e7e82ed52c/src/framework/components/collision/trigger.js#L19

Creates a trigger object used to create internal physics objects that interact with rigid bodies
and trigger collision events with no collision response.

## Constructors

### constructor

```ts
new Trigger(app: AppBase, component: CollisionComponent)
```

Create a new Trigger instance.

**Parameters**

- `app` ([`AppBase`](https://api.playcanvas.com/engine/classes/AppBase.md)): The running [AppBase](https://api.playcanvas.com/engine/classes/AppBase.md).
- `component` ([`CollisionComponent`](https://api.playcanvas.com/engine/classes/CollisionComponent.md)): The component for which the trigger will be created.
