Skip to content

Commit

Permalink
コンパネをScene Viewの下に表示した
Browse files Browse the repository at this point in the history
  • Loading branch information
Gurrium committed Mar 20, 2022
1 parent 5f62bdf commit ffc9a02
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
1 change: 0 additions & 1 deletion Komusou/WorldView.swift
Expand Up @@ -89,7 +89,6 @@ final class _WorldView: UIView {
scene.rootNode.addChildNode(boxBase)
boxBase.addChildNode(box)
boxBase.runAction(.moveBy(x: 0, y: 3, z: 0, duration: 0))
// box.pivot = SCNMatrix4MakeTranslation(10, 0, 0)

let cameraNode = SCNNode()
cameraNode.camera = SCNCamera()
Expand Down
15 changes: 8 additions & 7 deletions Komusou/WorldView.xib
Expand Up @@ -15,13 +15,13 @@
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<subviews>
<sceneKitView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" sceneName="art.scnassets/world.scn" translatesAutoresizingMaskIntoConstraints="NO" id="U88-wA-C1c">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<rect key="frame" x="0.0" y="0.0" width="414" height="784"/>
</sceneKitView>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ERg-w6-0Ln">
<rect key="frame" x="0.0" y="782" width="215" height="80"/>
<rect key="frame" x="0.0" y="784" width="414" height="112"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" alignment="top" spacing="4" translatesAutoresizingMaskIntoConstraints="NO" id="5PK-Bs-zAa">
<rect key="frame" x="8" y="8" width="199" height="64"/>
<rect key="frame" x="8" y="16" width="398" height="64"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Speed: 30[km/h]" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="LZB-NY-jG4">
<rect key="frame" x="0.0" y="0.0" width="182.5" height="30"/>
Expand All @@ -40,21 +40,22 @@
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstAttribute="bottom" secondItem="5PK-Bs-zAa" secondAttribute="bottom" constant="8" id="XKW-VL-lad"/>
<constraint firstAttribute="bottom" secondItem="5PK-Bs-zAa" secondAttribute="bottom" constant="32" id="XKW-VL-lad"/>
<constraint firstItem="5PK-Bs-zAa" firstAttribute="leading" secondItem="ERg-w6-0Ln" secondAttribute="leading" constant="8" id="g5A-nR-yZ1"/>
<constraint firstItem="5PK-Bs-zAa" firstAttribute="top" secondItem="ERg-w6-0Ln" secondAttribute="top" constant="8" id="gBP-g1-DZy"/>
<constraint firstItem="5PK-Bs-zAa" firstAttribute="top" secondItem="ERg-w6-0Ln" secondAttribute="top" constant="16" id="gBP-g1-DZy"/>
<constraint firstAttribute="trailing" secondItem="5PK-Bs-zAa" secondAttribute="trailing" constant="8" id="nqC-7x-YB4"/>
</constraints>
</view>
</subviews>
<viewLayoutGuide key="safeArea" id="1Fp-JU-sil"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstItem="1Fp-JU-sil" firstAttribute="bottom" secondItem="ERg-w6-0Ln" secondAttribute="bottom" id="NTc-Th-JIV"/>
<constraint firstItem="1Fp-JU-sil" firstAttribute="trailing" secondItem="ERg-w6-0Ln" secondAttribute="trailing" id="3ut-yl-nyr"/>
<constraint firstItem="U88-wA-C1c" firstAttribute="top" secondItem="xFZ-Bd-mgL" secondAttribute="top" id="UzJ-af-Ln8"/>
<constraint firstAttribute="trailing" secondItem="U88-wA-C1c" secondAttribute="trailing" id="XXm-ee-AY1"/>
<constraint firstItem="ERg-w6-0Ln" firstAttribute="bottom" secondItem="xFZ-Bd-mgL" secondAttribute="bottom" id="ZuH-iI-geK"/>
<constraint firstItem="ERg-w6-0Ln" firstAttribute="leading" secondItem="1Fp-JU-sil" secondAttribute="leading" id="chT-yX-Rpv"/>
<constraint firstAttribute="bottom" secondItem="U88-wA-C1c" secondAttribute="bottom" id="fOP-NS-YIm"/>
<constraint firstItem="ERg-w6-0Ln" firstAttribute="top" secondItem="U88-wA-C1c" secondAttribute="bottom" id="fOP-NS-YIm"/>
<constraint firstItem="U88-wA-C1c" firstAttribute="leading" secondItem="xFZ-Bd-mgL" secondAttribute="leading" id="sjs-3D-6t9"/>
</constraints>
<connections>
Expand Down

0 comments on commit ffc9a02

Please sign in to comment.