# Projectile Thrower

## Overview

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

<figure><img src="/files/UvPdj6EEPJuDVuANdMME" 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="/files/btd4kWDvXCjOrNfCqLg6" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://malbersanimations.gitbook.io/animal-controller/secondary-components/mdamager/projectile-thrower.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
