Costruttore
Trigger.Default Constructor
Sintassi
Trigger(location, rotation, extent, trigger_type = TriggerType.Sphere, is_visible = false, color = Color.RED, overlap_only_classes = {})
Parametri
| Nome | Tipo | Predefinito | Descrizione |
|---|---|---|---|
location
|
Vector | — | — |
rotation
|
Rotator | — | — |
extent
|
Vector|float | — | Size of the Trigger. If using <code>TriggerType.Sphere</code> it is treated as radius, otherwise as Vector extent |
trigger_type
facoltativo
|
TriggerType | TriggerType.Sphere |
— |
is_visible
facoltativo
|
boolean | false |
Useful for debugging |
color
facoltativo
|
Color | Color.RED |
Color to paint the Trigger bounds - if Visible |
overlap_only_classes
facoltativo
|
string[] | {} |
Filter Trigger to only overlap specific Classes. Leave it empty for all Classes |