SKPhysicsWorld.Gravity Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A vector representing gravitational acceleration.
public virtual CoreGraphics.CGVector Gravity { [Foundation.Export("gravity")] get; [Foundation.Export("setGravity:")] set; }
member this.Gravity : CoreGraphics.CGVector with get, set
Property Value
The default value of (0, -9.8) mimics Earth standard gravity of 9.78 m/sec^2. Setting the value to (0,0) effectively turns off gravity.
- Attributes
Applies to
See also
- <xref:SpriteKite.SKPhysicsBody.AffectedByGravity>