편집

다음을 통해 공유


SKNode.ObstaclesFromNodePhysicsBodies(SKNode[]) Method

Definition

Creates a new GKPolygonObstacle for each PhysicsBody in the SKNode object in nodes

[Foundation.Export("obstaclesFromNodePhysicsBodies:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 11, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public static GameplayKit.GKPolygonObstacle[] ObstaclesFromNodePhysicsBodies (SpriteKit.SKNode[] nodes);
static member ObstaclesFromNodePhysicsBodies : SpriteKit.SKNode[] -> GameplayKit.GKPolygonObstacle[]

Parameters

nodes
SKNode[]

Returns

Attributes

Applies to