Edit

Share via


SKPhysicsBody.AffectedByGravity Property

Definition

Whether the body is affected by the SKPhysicsWorld's Gravity vector.

public virtual bool AffectedByGravity { [Foundation.Export("affectedByGravity")] get; [Foundation.Export("setAffectedByGravity:")] set; }
member this.AffectedByGravity : bool with get, set

Property Value

The default value is true.

Attributes

Applies to

See also