SmallProjectile
A class in Root.Township, the global namespace.
Server-side sweep test for small fast projectiles: sphere casts along the rigidbody's velocity each physics step so thin hits aren't missed, and passes hits to a trigger impact tool.
- Listed in Global namespace: S
- Inherits or implements
MonoBehaviour
Constructors
| Member | What it is |
|---|---|
SmallProjectile() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
5 private and internal fields
| Member | What it is |
|---|---|
private Transform cachedTransform | Cached transform of the projectile. |
private LayerMask hitLayers | Layers the sphere cast hits. |
private NetworkRigidbody networkRigidbody | Network rigidbody whose velocity drives the cast. |
private float size | Sphere cast radius. |
private TriggerImpactTool triggerImpactTool | Impact tool that handles the hit. |