Defines the valid range of the camera's position relative to this trigger. More...
Public Attributes | |
Collider | lookAtTarget |
What the camera should be looking at to trigger the interaction? More... | |
Vector3 | direction = -Vector3.forward |
The direction from the lookAtTarget towards the camera (in lookAtTarget's space). More... | |
float | maxDistance = 0.5f |
Max distance from the lookAtTarget to the camera. More... | |
float | maxAngle = 45f |
Max angle between the direction and the direction towards the camera. More... | |
bool | fixYAxis |
Fixes the Y axis of the trigger to Vector3.up. This makes the trigger symmetrical relative to the object. More... | |
Defines the valid range of the camera's position relative to this trigger.