Upravit

Sdílet prostřednictvím


SKPhysicsBody.Restitution Property

Definition

Gets or sets the proportion of energy, between 0.0 and 1.0, that the physics body loses when it bounces off of another physics body. The default is 0.2.

public virtual nfloat Restitution { [Foundation.Export("restitution")] get; [Foundation.Export("setRestitution:")] set; }
member this.Restitution : nfloat with get, set

Property Value

Attributes

Applies to