SKPhysicsBody.CreateRectangularBody Method

Definition

Overloads

CreateRectangularBody(CGSize)

Creates a rectangular physics body from the specified rectangle.

CreateRectangularBody(CGSize, CGPoint)

Creates a rectangular physics body from the specified rectangle and center.

CreateRectangularBody(CGSize)

Creates a rectangular physics body from the specified rectangle.

[Foundation.Export("bodyWithRectangleOfSize:")]
public static SpriteKit.SKPhysicsBody CreateRectangularBody (CoreGraphics.CGSize size);
static member CreateRectangularBody : CoreGraphics.CGSize -> SpriteKit.SKPhysicsBody

Parameters

size
CGSize

Returns

Attributes

Applies to

CreateRectangularBody(CGSize, CGPoint)

Creates a rectangular physics body from the specified rectangle and center.

[Foundation.Export("bodyWithRectangleOfSize: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 CreateRectangularBody (CoreGraphics.CGSize size, CoreGraphics.CGPoint center);
static member CreateRectangularBody : CoreGraphics.CGSize * CoreGraphics.CGPoint -> SpriteKit.SKPhysicsBody

Parameters

size
CGSize
center
CGPoint

Returns

Attributes

Applies to