Browse Source

Fix Coin size and rotation

Till Steinert 2 years ago
parent
commit
13c565004f
2 changed files with 19 additions and 20 deletions
  1. 17 18
      Assets/Coin/Coin.prefab
  2. 2 2
      Assets/Coin/CoinCreation.cs

+ 17 - 18
Assets/Coin/Coin.prefab

@@ -11,10 +11,10 @@ GameObject:
   - component: {fileID: 2456743223399824137}
   - component: {fileID: 2456743223399824142}
   - component: {fileID: 2456743223399824141}
-  - component: {fileID: 2456743223399824140}
   - component: {fileID: 2456743223399824136}
   - component: {fileID: 2456743223399824143}
   - component: {fileID: 1169029905030265530}
+  - component: {fileID: 3491611712003584148}
   m_Layer: 0
   m_Name: Coin
   m_TagString: Untagged
@@ -29,13 +29,13 @@ RectTransform:
   m_PrefabInstance: {fileID: 0}
   m_PrefabAsset: {fileID: 0}
   m_GameObject: {fileID: 2456743223399824147}
-  m_LocalRotation: {x: 0, y: 0, z: 0.7071068, w: 0.7071068}
+  m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
   m_LocalPosition: {x: 0, y: 0, z: -0.056}
-  m_LocalScale: {x: 1, y: 1, z: 1}
+  m_LocalScale: {x: 2, y: 2, z: 2}
   m_Children: []
   m_Father: {fileID: 0}
   m_RootOrder: 0
-  m_LocalEulerAnglesHint: {x: 0, y: 0, z: 90}
+  m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
   m_AnchorMin: {x: 0.5, y: 0.5}
   m_AnchorMax: {x: 0.5, y: 0.5}
   m_AnchoredPosition: {x: 9.377447, y: 0.624}
@@ -90,20 +90,6 @@ MeshRenderer:
   m_SortingLayer: 0
   m_SortingOrder: 0
   m_AdditionalVertexStreams: {fileID: 0}
---- !u!136 &2456743223399824140
-CapsuleCollider:
-  m_ObjectHideFlags: 0
-  m_CorrespondingSourceObject: {fileID: 0}
-  m_PrefabInstance: {fileID: 0}
-  m_PrefabAsset: {fileID: 0}
-  m_GameObject: {fileID: 2456743223399824147}
-  m_Material: {fileID: 0}
-  m_IsTrigger: 1
-  m_Enabled: 1
-  m_Radius: 0.5
-  m_Height: 2
-  m_Direction: 1
-  m_Center: {x: 0, y: 0, z: 0}
 --- !u!222 &2456743223399824136
 CanvasRenderer:
   m_ObjectHideFlags: 0
@@ -158,3 +144,16 @@ MonoBehaviour:
   m_Script: {fileID: 11500000, guid: db54fa6c98d9a61898f79796237ddfdf, type: 3}
   m_Name: 
   m_EditorClassIdentifier: 
+--- !u!65 &3491611712003584148
+BoxCollider:
+  m_ObjectHideFlags: 0
+  m_CorrespondingSourceObject: {fileID: 0}
+  m_PrefabInstance: {fileID: 0}
+  m_PrefabAsset: {fileID: 0}
+  m_GameObject: {fileID: 2456743223399824147}
+  m_Material: {fileID: 0}
+  m_IsTrigger: 1
+  m_Enabled: 1
+  serializedVersion: 2
+  m_Size: {x: 0.08961533, y: 0.5748798, z: 0.57487977}
+  m_Center: {x: -0.00019241124, y: 0, z: 0}

+ 2 - 2
Assets/Coin/CoinCreation.cs

@@ -139,13 +139,13 @@ public class CoinCreation : MonoBehaviour
                 {
                     space_x = distance_x / stepsize;
                     Debug.Log("Coin-Creation: Place Coins along x axis.");
-                    rotationVector = new Vector3(0f, 0f, 90f);
+                    rotationVector = new Vector3(0f, 0f, 0f);
                 }
                 if (distance_z > 0) // wenn entlang der z Richung verteilt wird
                 {
                     space_z = distance_z / stepsize;
                     Debug.Log("Coin-Creation: Place Coins along z axis.");
-                    rotationVector = new Vector3(0f, 90f, 90f);
+                    rotationVector = new Vector3(0f, 90f, 0f);
                 }
 
                 for (int i = idx; i < System.Math.Round(stepsize); ++i)