%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &1007791265168148
GameObject:
  m_ObjectHideFlags: 0
  m_CorrespondingSourceObject: {fileID: 0}
  m_PrefabInstance: {fileID: 0}
  m_PrefabAsset: {fileID: 0}
  serializedVersion: 6
  m_Component:
  - component: {fileID: 4649185370102174}
  - component: {fileID: 114831885408469968}
  m_Layer: 0
  m_Name: tutorial_matrix4x4
  m_TagString: Untagged
  m_Icon: {fileID: 0}
  m_NavMeshLayer: 0
  m_StaticEditorFlags: 0
  m_IsActive: 1
--- !u!4 &4649185370102174
Transform:
  m_ObjectHideFlags: 0
  m_CorrespondingSourceObject: {fileID: 0}
  m_PrefabInstance: {fileID: 0}
  m_PrefabAsset: {fileID: 0}
  m_GameObject: {fileID: 1007791265168148}
  m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
  m_LocalPosition: {x: 0, y: 0, z: 0}
  m_LocalScale: {x: 1, y: 1, z: 1}
  m_ConstrainProportionsScale: 0
  m_Children:
  - {fileID: 4712815485488066}
  m_Father: {fileID: 0}
  m_RootOrder: 0
  m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &114831885408469968
MonoBehaviour:
  m_ObjectHideFlags: 0
  m_CorrespondingSourceObject: {fileID: 0}
  m_PrefabInstance: {fileID: 0}
  m_PrefabAsset: {fileID: 0}
  m_GameObject: {fileID: 1007791265168148}
  m_Enabled: 1
  m_EditorHideFlags: 0
  m_Script: {fileID: 11500000, guid: 66b0828df2674da449a4ede7b8596dd5, type: 3}
  m_Name: 
  m_EditorClassIdentifier: 
  Meta:
    title: tutorial_matrix4x4
    author: virtualcast
    contactInformation: 
    reference: 
    thumbnail: {fileID: 0}
    version: 1.0.0
    description: 
    exporterVersion: 0.17
    specVersion: 
    modelDataLicenseType: 0
    modelDataOtherLicenseUrl: 
    scriptLicenseType: 0
    scriptOtherLicenseUrl: 
    scriptWriteProtected: 0
    scriptEnableDebugging: 0
  Scripts:
  - name: main
    mimeType: 0
    targetEngine: 0
    textAsset: {fileID: 0}
    filePath: 
    source: "local m = Matrix4x4.zero\r\n \r\nlocal sub = vci.assets.GetTransform(\"sub\")\r\nlocal
      baseposition\r\nlocal baserotation\r\nlocal basescale\r\nlocal rotq\r\n \r\n
      \r\nlocal rotation = Quaternion.Euler(0, 0, 1)--\u30ED\u30FC\u30AB\u30EB\u56DE\u8EE2\u91CF\r\nlocal
      translation = Vector3.__new(0,0,0)--\u30ED\u30FC\u30AB\u30EB\u79FB\u52D5\u91CF\r\nlocal
      scale = Vector3.__new(1,1,1)--\u30ED\u30FC\u30AB\u30EB\u30B9\u30B1\u30FC\u30EB\u91CF\r\n
      \r\n \r\nfunction updateAll()\r\n    baseposition = sub.GetLocalPosition()--Vector3\r\n   
      baserotation = sub.GetLocalRotation()--Quaternion\r\n    basescale = sub.GetLocalScale()--Vector3\r\n
      \r\n    m.setTRS(translation,rotation,scale)--m\u306B\u5909\u63DB\u884C\u5217\u3092\u8A2D\u5B9A\r\n   
      rotq = m.rotation --\u5909\u63DB\u884C\u5217\u304B\u3089\u6C42\u3081\u305F\u56DE\u8EE2
      Quaternion\r\n \r\n    baserotation = rotq*baserotation\r\n    baseposition
      = m.MultiplyPoint3x4(baseposition)--\u5E73\u884C\u79FB\u52D5\u306E\u5834\u5408\u4F7F\u7528\u3067\u304D\u308B\r\n   
      basescale = Vector3.__new(scale.x*basescale.x,scale.y*basescale.y,scale.z*basescale.z)\r\n
      \r\n    sub.SetLocalRotation(baserotation)--\u56DE\u8EE2\u3092\u9069\u7528\r\n   
      sub.SetLocalPosition(baseposition)--\u79FB\u52D5\u3092\u9069\u7528\r\n    sub.SetLocalScale(basescale)--\u30B9\u30B1\u30FC\u30EB\u3092\u9069\u7528\r\n
      \r\nend"
--- !u!1 &1242071792667836
GameObject:
  m_ObjectHideFlags: 0
  m_CorrespondingSourceObject: {fileID: 0}
  m_PrefabInstance: {fileID: 0}
  m_PrefabAsset: {fileID: 0}
  serializedVersion: 6
  m_Component:
  - component: {fileID: 4712815485488066}
  - component: {fileID: 33821887322956360}
  - component: {fileID: 23661938809333438}
  - component: {fileID: 114271849353924610}
  - component: {fileID: 54355130875470316}
  m_Layer: 0
  m_Name: sub
  m_TagString: Untagged
  m_Icon: {fileID: 0}
  m_NavMeshLayer: 0
  m_StaticEditorFlags: 0
  m_IsActive: 1
--- !u!4 &4712815485488066
Transform:
  m_ObjectHideFlags: 0
  m_CorrespondingSourceObject: {fileID: 0}
  m_PrefabInstance: {fileID: 0}
  m_PrefabAsset: {fileID: 0}
  m_GameObject: {fileID: 1242071792667836}
  m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
  m_LocalPosition: {x: 0, y: 1, z: 0}
  m_LocalScale: {x: 0.2, y: 0.2, z: 0.2}
  m_ConstrainProportionsScale: 0
  m_Children: []
  m_Father: {fileID: 4649185370102174}
  m_RootOrder: 0
  m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!33 &33821887322956360
MeshFilter:
  m_ObjectHideFlags: 0
  m_CorrespondingSourceObject: {fileID: 0}
  m_PrefabInstance: {fileID: 0}
  m_PrefabAsset: {fileID: 0}
  m_GameObject: {fileID: 1242071792667836}
  m_Mesh: {fileID: 10206, guid: 0000000000000000e000000000000000, type: 0}
--- !u!23 &23661938809333438
MeshRenderer:
  m_ObjectHideFlags: 0
  m_CorrespondingSourceObject: {fileID: 0}
  m_PrefabInstance: {fileID: 0}
  m_PrefabAsset: {fileID: 0}
  m_GameObject: {fileID: 1242071792667836}
  m_Enabled: 1
  m_CastShadows: 1
  m_ReceiveShadows: 1
  m_DynamicOccludee: 1
  m_StaticShadowCaster: 0
  m_MotionVectors: 1
  m_LightProbeUsage: 1
  m_ReflectionProbeUsage: 1
  m_RayTracingMode: 2
  m_RayTraceProcedural: 0
  m_RenderingLayerMask: 4294967295
  m_RendererPriority: 0
  m_Materials:
  - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0}
  m_StaticBatchInfo:
    firstSubMesh: 0
    subMeshCount: 0
  m_StaticBatchRoot: {fileID: 0}
  m_ProbeAnchor: {fileID: 0}
  m_LightProbeVolumeOverride: {fileID: 0}
  m_ScaleInLightmap: 1
  m_ReceiveGI: 1
  m_PreserveUVs: 0
  m_IgnoreNormalsForChartDetection: 0
  m_ImportantGI: 0
  m_StitchLightmapSeams: 0
  m_SelectedEditorRenderState: 3
  m_MinimumChartSize: 4
  m_AutoUVMaxDistance: 0.5
  m_AutoUVMaxAngle: 89
  m_LightmapParameters: {fileID: 0}
  m_SortingLayerID: 0
  m_SortingLayer: 0
  m_SortingOrder: 0
  m_AdditionalVertexStreams: {fileID: 0}
--- !u!114 &114271849353924610
MonoBehaviour:
  m_ObjectHideFlags: 0
  m_CorrespondingSourceObject: {fileID: 0}
  m_PrefabInstance: {fileID: 0}
  m_PrefabAsset: {fileID: 0}
  m_GameObject: {fileID: 1242071792667836}
  m_Enabled: 1
  m_EditorHideFlags: 0
  m_Script: {fileID: 11500000, guid: ed42f86ebdb20ba4597c4e753b47ee4c, type: 3}
  m_Name: 
  m_EditorClassIdentifier: 
  Grabbable: 0
  Scalable: 0
  UniformScaling: 0
  Attractable: 0
  AttractableDistance: 20
  GroupId: 0
  NodeIndex: 0
  Key: 1695971294
--- !u!54 &54355130875470316
Rigidbody:
  m_ObjectHideFlags: 0
  m_CorrespondingSourceObject: {fileID: 0}
  m_PrefabInstance: {fileID: 0}
  m_PrefabAsset: {fileID: 0}
  m_GameObject: {fileID: 1242071792667836}
  serializedVersion: 2
  m_Mass: 1
  m_Drag: 0
  m_AngularDrag: 0.05
  m_UseGravity: 0
  m_IsKinematic: 1
  m_Interpolate: 0
  m_Constraints: 0
  m_CollisionDetection: 0
