Defines the valid range of the character's position and rotation relative to this trigger. More...
Public Attributes | |
bool | use |
If false, will not care where the character stands, as long as it is in contact with the trigger collider. More... | |
Vector2 | offset |
The offset of the character's position relative to the trigger in XZ plane. Y position of the character is unlimited as long as it is contact with the collider. More... | |
float | angleOffset |
Angle offset from the default forward direction.. More... | |
float | maxAngle = 45f |
Max angular offset of the character's forward from the direction of this trigger. More... | |
float | radius = 0.5f |
Max offset of the character's position from this range's center. More... | |
bool | orbit |
If true, will rotate the trigger around its Y axis relative to the position of the character, so the object can be interacted with from all sides. More... | |
bool | fixYAxis |
Fixes the Y axis of the trigger to Vector3.up. This makes the trigger symmetrical relative to the object. For example a gun will be able to be picked up from the same direction relative to the barrel no matter which side the gun is resting on. More... | |
Defines the valid range of the character's position and rotation relative to this trigger.