<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/PhysicsSimulationComponent/gravity",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation26PhysicsSimulationComponentV7gravitys5SIMD3VySfGvp"
  },
  "title" : "gravity"
}
-->

# gravity

The gravity for the simulation relative to the simulation entity.

```
var gravity: SIMD3<Float>
```

## Discussion

The value stored in this property is the gravitational acceleration applied to dynamic physics body entities every frame along the negative world y-axis.
The default value is `-9.81` meters per second squared.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)