Skip to content
Snippets Groups Projects
Commit 56018183 authored by Tobias Ullerich's avatar Tobias Ullerich
Browse files

Change main camera, add floor

parent 0515b468
No related branches found
No related tags found
No related merge requests found
...@@ -47,7 +47,7 @@ class GameViewController: UIViewController { ...@@ -47,7 +47,7 @@ class GameViewController: UIViewController {
scnView.scene = scene scnView.scene = scene
// allows the user to manipulate the camera // allows the user to manipulate the camera
scnView.allowsCameraControl = true scnView.allowsCameraControl = false
// show statistics such as fps and timing information // show statistics such as fps and timing information
scnView.showsStatistics = true scnView.showsStatistics = true
...@@ -96,7 +96,7 @@ class GameViewController: UIViewController { ...@@ -96,7 +96,7 @@ class GameViewController: UIViewController {
} }
override var shouldAutorotate: Bool { override var shouldAutorotate: Bool {
return true return false
} }
override var prefersStatusBarHidden: Bool { override var prefersStatusBarHidden: Bool {
...@@ -105,7 +105,7 @@ class GameViewController: UIViewController { ...@@ -105,7 +105,7 @@ class GameViewController: UIViewController {
override var supportedInterfaceOrientations: UIInterfaceOrientationMask { override var supportedInterfaceOrientations: UIInterfaceOrientationMask {
if UIDevice.current.userInterfaceIdiom == .phone { if UIDevice.current.userInterfaceIdiom == .phone {
return .allButUpsideDown return .portrait
} else { } else {
return .all return .all
} }
......
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
<contributor> <contributor>
<authoring_tool>SceneKit Collada Exporter v1.0</authoring_tool> <authoring_tool>SceneKit Collada Exporter v1.0</authoring_tool>
</contributor> </contributor>
<created>2017-06-19T12:53:45Z</created> <created>2017-06-19T13:19:41Z</created>
<modified>2017-06-19T12:53:45Z</modified> <modified>2017-06-19T13:19:41Z</modified>
<unit meter="1.000000"/> <unit meter="1.000000"/>
<up_axis>Z_UP</up_axis> <up_axis>Z_UP</up_axis>
</asset> </asset>
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<optics> <optics>
<technique_common> <technique_common>
<perspective> <perspective>
<xfov>49.1343</xfov> <xfov>49.134</xfov>
<znear>0.1</znear> <znear>0.1</znear>
<zfar>100</zfar> <zfar>100</zfar>
</perspective> </perspective>
...@@ -159,7 +159,7 @@ ...@@ -159,7 +159,7 @@
</instance_geometry> </instance_geometry>
</node> </node>
<node id="Camera_001" name="Camera_001"> <node id="Camera_001" name="Camera_001">
<matrix>1 0 0 0 0 -4.37114e-08 -1 -4.303865 0 1 -4.37114e-08 5.74143e-07 0 0 0 1 </matrix> <matrix>0.009428203 0.3446076 -0.9386549 -5.094206 -0.9999211 0.00324893 -0.008850717 0.0210471 -3.576155e-07 0.9387442 0.3446054 2.326969 0 0 0 1 </matrix>
<instance_camera url="#Camera_001-camera"/> <instance_camera url="#Camera_001-camera"/>
</node> </node>
</visual_scene> </visual_scene>
......
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment