Düzenle

Aracılığıyla paylaş


SKPhysicsBody.Create Method

Definition

Overloads

Create(SKTexture, CGSize)

Creates a new physics body with the specified texture and size.

Create(SKTexture, Single, CGSize)

Creates a new physics body with the specified values.

Create(SKTexture, CGSize)

Creates a new physics body with the specified texture and size.

[Foundation.Export("bodyWithTexture:size:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 10, ObjCRuntime.PlatformArchitecture.All, null)]
public static SpriteKit.SKPhysicsBody Create (SpriteKit.SKTexture texture, CoreGraphics.CGSize size);
static member Create : SpriteKit.SKTexture * CoreGraphics.CGSize -> SpriteKit.SKPhysicsBody

Parameters

texture
SKTexture
size
CGSize

Returns

Attributes

Applies to

Create(SKTexture, Single, CGSize)

Creates a new physics body with the specified values.

[Foundation.Export("bodyWithTexture:alphaThreshold:size:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 10, ObjCRuntime.PlatformArchitecture.All, null)]
public static SpriteKit.SKPhysicsBody Create (SpriteKit.SKTexture texture, float alphaThreshold, CoreGraphics.CGSize size);
static member Create : SpriteKit.SKTexture * single * CoreGraphics.CGSize -> SpriteKit.SKPhysicsBody

Parameters

texture
SKTexture
alphaThreshold
Single
size
CGSize

Returns

Attributes

Applies to