---
title: Add(quaternion4, quaternion4)
product: Unity Editor
version: '7000.0'
latest_version: '7000.0'
status: This page documents version 7000.0. The latest version is 7000.0.
canonical: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/animations/quaternion4extensions/add
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/animations/quaternion4extensions/add.md
last_updated: 2026-11-30
generated_at: 2026-11-30T21:31:57.056Z
locale: en-us
---

# Add(quaternion4, quaternion4)

> Returns q1 + q2 with q2 flipped into the hemisphere of q1. The result isn't normalized, so it can be used to accumulate weighted rotations.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Animations](/engine/7000.0/script-reference/unity/animations.md)
* **Assembly:** [UnityEngine.AnimationCoreModule](/engine/7000.0/script-reference/modules/unityengine-animationcoremodule.md)

```csharp
public static quaternion4 Add(this quaternion4 q1, quaternion4 q2)
```

### Parameters

**** (\[quaternion4]\(/engine/7000.0/script-reference/unity/animations/quaternion4)): The [quaternion4](/engine/7000.0/script-reference/unity/animations/quaternion4.md) to add to.**** (\[quaternion4]\(/engine/7000.0/script-reference/unity/animations/quaternion4)): The [quaternion4](/engine/7000.0/script-reference/unity/animations/quaternion4.md) to flip and add.

### Returns

| Type                                                                           | Description                           |
| ------------------------------------------------------------------------------ | ------------------------------------- |
| [quaternion4](/engine/7000.0/script-reference/unity/animations/quaternion4.md) | The sum of `q1` and the flipped `q2`. |
