Skip to content

Commit

Permalink
note about rotating trigger shapes
Browse files Browse the repository at this point in the history
  • Loading branch information
nearnshaw authored Aug 30, 2019
1 parent cb24202 commit a690f00
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,8 @@ You can set a custom shape for the player trigger according to your needs:
utils.TriggerSystem.instance.setCameraTriggerShape(new utils.TriggerBoxShape(new Vector3(0.5, 1.8, 0.5), new Vector3(0, -0.91, 0)))
```

> Note: The trigger shape can be positioned or stretched, but it can't be rotated on any axis. This is a design decision taken for performance reasons. To cover a slanted area, we recommend adding multiple triggers if applicable.
### Trigger layers

You can define different layers (bitwise) for triggers, and set which other layers can trigger it.
Expand Down Expand Up @@ -720,4 +722,4 @@ const sequence = new utils.ActionsSequenceSystem.SequenceBuilder()

//Create a sequence system, and add it to the engine to run the sequence
engine.addSystem(new utils.ActionsSequenceSystem(sequence))
```
```

0 comments on commit a690f00

Please sign in to comment.