SKPhysicsBody.CreateRectangularBody 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
| Name | Description |
|---|---|
| CreateRectangularBody(CGSize) | |
| CreateRectangularBody(CGSize, CGPoint) |
CreateRectangularBody(CGSize)
[Foundation.Export("bodyWithRectangleOfSize:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static SpriteKit.SKPhysicsBody CreateRectangularBody(CoreGraphics.CGSize size);
[<Foundation.Export("bodyWithRectangleOfSize:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member CreateRectangularBody : CoreGraphics.CGSize -> SpriteKit.SKPhysicsBody
Parameters
- size
- CGSize
Returns
- Attributes
Applies to
CreateRectangularBody(CGSize, CGPoint)
[Foundation.Export("bodyWithRectangleOfSize:center:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static SpriteKit.SKPhysicsBody CreateRectangularBody(CoreGraphics.CGSize size, CoreGraphics.CGPoint center);
[<Foundation.Export("bodyWithRectangleOfSize:center:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member CreateRectangularBody : CoreGraphics.CGSize * CoreGraphics.CGPoint -> SpriteKit.SKPhysicsBody
Parameters
- size
- CGSize
- center
- CGPoint
Returns
- Attributes