SKPhysicsBody.CreateEdgeLoop 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
CreateEdgeLoop(CGPath) |
Creates a closed edge loop from the specified path, closing the path if necessary. |
CreateEdgeLoop(CGRect) |
Creates a closed edge loop from the specified rectangle. |
CreateEdgeLoop(CGPath)
Creates a closed edge loop from the specified path, closing the path if necessary.
[Foundation.Export("bodyWithEdgeLoopFromPath:")]
public static SpriteKit.SKPhysicsBody CreateEdgeLoop (CoreGraphics.CGPath path);
static member CreateEdgeLoop : CoreGraphics.CGPath -> SpriteKit.SKPhysicsBody
Parameters
- path
- CGPath
Returns
- Attributes
Applies to
CreateEdgeLoop(CGRect)
Creates a closed edge loop from the specified rectangle.
[Foundation.Export("bodyWithEdgeLoopFromRect:")]
public static SpriteKit.SKPhysicsBody CreateEdgeLoop (CoreGraphics.CGRect rect);
static member CreateEdgeLoop : CoreGraphics.CGRect -> SpriteKit.SKPhysicsBody
Parameters
- rect
- CGRect
Returns
- Attributes