Bearbeiten

Freigeben über


SKPhysicsBody.CreateCircularBody Method

Definition

Overloads

CreateCircularBody(nfloat)

Creates a new circular physics body with the specified radius.

CreateCircularBody(nfloat, CGPoint)

Creates a new circular physics body with the specified radius and center.

CreateCircularBody(nfloat)

Creates a new circular physics body with the specified radius.

[Foundation.Export("bodyWithCircleOfRadius:")]
public static SpriteKit.SKPhysicsBody CreateCircularBody (nfloat radius);
static member CreateCircularBody : nfloat -> SpriteKit.SKPhysicsBody

Parameters

radius
nfloat

Returns

Attributes

Applies to

CreateCircularBody(nfloat, CGPoint)

Creates a new circular physics body with the specified radius and center.

[Foundation.Export("bodyWithCircleOfRadius:center:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 1, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 10, ObjCRuntime.PlatformArchitecture.All, null)]
public static SpriteKit.SKPhysicsBody CreateCircularBody (nfloat radius, CoreGraphics.CGPoint center);
static member CreateCircularBody : nfloat * CoreGraphics.CGPoint -> SpriteKit.SKPhysicsBody

Parameters

radius
nfloat
center
CGPoint

Returns

Attributes

Applies to