---
title: "setStateFrom(_:)"
framework: gamecontroller
role: symbol
role_heading: Instance Method
path: "gamecontroller/gcmotion/setstatefrom(_:)"
---

# setStateFrom(_:)

Copies the input values from a specified motion profile to a snapshot of a motion profile.

## Declaration

```swift
func setStateFrom(_ motion: GCMotion)
```

## Parameters

- `motion`: The motion profile to copy the input values from.

## See Also

### Setting Snapshot Values

- [setAttitude(_:)](gamecontroller/gcmotion/setattitude(_:).md)
- [setRotationRate(_:)](gamecontroller/gcmotion/setrotationrate(_:).md)
- [setAcceleration(_:)](gamecontroller/gcmotion/setacceleration(_:).md)
- [setGravity(_:)](gamecontroller/gcmotion/setgravity(_:).md)
- [setUserAcceleration(_:)](gamecontroller/gcmotion/setuseracceleration(_:).md)
