# Projectile Thrower

## Overview

The projectile thrower, quite simply, allows you to launch or throw projectiles given the stats entered.

<figure><img src="https://963537199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lzhr1XSMzMqNXjRnNlb%2Fuploads%2Fze3FCYRMoKh17RhwT5nA%2Fimage.png?alt=media&#x26;token=9acb9679-08c6-4ccb-9c52-cc13fade86f4" alt=""><figcaption></figcaption></figure>

Here is a video showcasing how to do that:<br>

{% embed url="<https://streamable.com/mnlsmp>" %}

On a basic level, simply have a prefab ready that you want to launch and enter it into the projectile slot!\
\
Example of how to use it with the wolf lite, to charge and fire a bolt:

{% embed url="<https://streamable.com/jwn5c2>" %}

## Properties

### Projectile

The gameobject that you want to launch/throw

### Fire On Start

When enabled, the projectile will be fired on start

### Damage Multiplier

Multiplier value to apply to the Projectile Stat Modifier

### Scale Multiplier

Multiplier value to apply to the Projectile scale

### Power (Force) Multiplier

Multiplier value to the Projectile Launch force

### Hit Layer

What layers can the projectile hit/not hit

### Trigger Interaction

Can be set to Ignore or Collide with triggers

### Target

When set, the projectile will always aim directly at the target

### Aim Origin

The transform reference for the Aim origin point. Typically set to the transform of the owner of the component.

### Owner

Owner of the thrower component. Typically set to the root gameobject.

### Aimer

Reference for the aim component if using one.

### Use Aimer Direction

If set to true, it will use the Aiming direction from the Aim component. If set to false it uses the forward vector by default

### Power (Force)

Launch force for the Projectile

### Angle

The angle to launch when a target is assigned

### Gravity

The gravity to apply to the projectile. By default, it's the standard Physics. Gravity setting

### **After Distance**

Apply gravity after certain distance is reached

<figure><img src="https://963537199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lzhr1XSMzMqNXjRnNlb%2Fuploads%2FXdzFHFwAb9zIvyK2JZ2a%2FUnity_1AF1aZbzUP.gif?alt=media&#x26;token=5b6e63f7-8d33-467a-83bb-ac6a5a6bbe63" alt=""><figcaption></figcaption></figure>
