# useUpObject

> Determines how the up vector is calculated.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine.Animations](/engine/6000.6/script-reference/unityengine/animations.md)
* **Assembly:** UnityEngine.AnimationModule

```csharp
public bool useUpObject { get; set; }
```

### Remarks

When set to true, the constraint uses [LookAtConstraint.worldUpObject](/engine/6000.6/script-reference/unityengine/animations/lookatconstraint/worldupobject.md) to calculate the up vector. When set to false, the constraint uses the world's Y axis rotated by [LookAtConstraint.roll](/engine/6000.6/script-reference/unityengine/animations/lookatconstraint/roll.md) as the up vector.
