Trigger Influence

Overview

The Influence Trigger is used to attract the camera to a certain point. The closer the camera target is to the center of the trigger, the closer it will get to the focus point. Please notice that the focus point doesn’t necessarily need to be in the trigger center. For example, you can put the trigger near a door and the focus point on the key further away. As the player approaches the door the camera will focus on the key.

Editor

Parameters:

Update Interval (>0): For performance reasons the trigger collision is only tested at a fixed interval. This value represents that interval. Adjust it to fit your needs

Trigger Shape: Either a circle or a rectangle. You can scale it like you do any other GameObject

Focus Point: The transform of the focus point. If left empty the focus point will be the center of the trigger

Influence Smoothness (>0): Represents how smoothly the camera should move towards the focus point. The lower the number the quickest the camera moves

Exclusive Influence Percentage: Represents a percentage of the trigger size that counts as the center of the trigger. Once the camera target enters this area it’s fully centred on the focus point

Use Targets Mid Point: If enabled, the trigger will use the camera targets mid point to know when to activate. If disabled, you can pass it a GameObject reference that the trigger will use instead