SKPhysicsBody.Create Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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