| scene |
Scene |
Scene to trace in. |
| ray |
Ray |
Origin and direction of the bullet (apply any aim cone before calling). |
| distance |
float |
How far the bullet travels. |
| radius |
float |
Bullet radius - 0 for a thin ray, higher to be forgiving. |
| damage |
float |
Damage dealt to what we hit. |
| force |
float |
Impulse applied to the hit physics body, along the bullet direction. |
| attacker |
GameObject |
Who fired this - credited for the damage and ignored by the trace. |
| weapon |
GameObject |
The weapon GameObject, recorded on the damage. |
| ignore = null |
GameObject |
Hierarchy to ignore. Defaults to . |
| tags = null |
TagSet |
Optional damage tags (e.g. "bullet"). |