Share via


SKPhysicsBody.Create Method

Definition

Overloads

Create(SKTexture, CGSize)

[Foundation.Export("bodyWithTexture:size:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static SpriteKit.SKPhysicsBody Create(SpriteKit.SKTexture texture, CoreGraphics.CGSize size);
[<Foundation.Export("bodyWithTexture:size:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member Create : SpriteKit.SKTexture * CoreGraphics.CGSize -> SpriteKit.SKPhysicsBody

Parameters

texture
SKTexture
size
CGSize

Returns

Attributes

Applies to

Create(SKTexture, Single, CGSize)

[Foundation.Export("bodyWithTexture:alphaThreshold:size:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static SpriteKit.SKPhysicsBody Create(SpriteKit.SKTexture texture, float alphaThreshold, CoreGraphics.CGSize size);
[<Foundation.Export("bodyWithTexture:alphaThreshold:size:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member Create : SpriteKit.SKTexture * single * CoreGraphics.CGSize -> SpriteKit.SKPhysicsBody

Parameters

texture
SKTexture
alphaThreshold
Single
size
CGSize

Returns

Attributes

Applies to