回答編集履歴
1
SKPhysicsBody(texture:size:)
test
CHANGED
@@ -1,7 +1,13 @@
|
|
1
|
-
|
1
|
+
`SKPhysicsBody(texture:size:)`を使って下さい。
|
2
2
|
|
3
3
|
|
4
4
|
|
5
|
+
```swift
|
5
6
|
|
7
|
+
if let texture = block1SpriteAppear.texture {
|
6
8
|
|
7
|
-
|
9
|
+
block1SpriteAppear.physicsBody = SKPhysicsBody(texture: texture, size: block1SpriteAppear.size)
|
10
|
+
|
11
|
+
}
|
12
|
+
|
13
|
+
```
|