Default Projectile

Each projectile has the Default Projectile script attached. This script requires a Sphere Collider and a Rigidbody component.

You can configure the following properties:

Max Speed

Defines the maximum speed of the projectile.

Speed over Time

Provides fine grained control over the projectile speed using a curve. For example, you can make the projectile start fast and slow down toward the end of its lifetime.

Animation Duration

Defines the duration in seconds for the speed curve animation.

Flash VFX

Launch flash effect that is spawned when the projectile is instantiated.

Hit VFX

Impact effect that is spawned when the projectile collides with another object.

Trails

A list of distance based child particles or trail objects that should not be destroyed immediately on impact.

These objects will be detached from the projectile so they can continue playing even after the projectile itself is destroyed. This helps achieve smoother visual transitions.

E.g.

Max Destroy Time

Defines the delay before the projectile is destroyed after impact. This is typically based on the particle system duration. For non-particle based components such as Trail Renderers, this value will be used instead.

Last updated