고다경

quad 움직임 완성

......@@ -319,6 +319,9 @@ GameObject:
- component: {fileID: 485542714}
- component: {fileID: 485542713}
- component: {fileID: 485542717}
- component: {fileID: 485542718}
- component: {fileID: 485542720}
- component: {fileID: 485542719}
m_Layer: 0
m_Name: Quad
m_TagString: Untagged
......@@ -348,7 +351,7 @@ MeshRenderer:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 485542712}
m_Enabled: 1
m_CastShadows: 1
m_CastShadows: 0
m_ReceiveShadows: 1
m_DynamicOccludee: 1
m_MotionVectors: 1
......@@ -387,20 +390,25 @@ MeshFilter:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 485542712}
m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0}
--- !u!4 &485542716
Transform:
--- !u!224 &485542716
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 485542712}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 210}
m_LocalScale: {x: 100, y: 100, z: 100}
m_LocalPosition: {x: 0, y: 0, z: 100}
m_LocalScale: {x: 20, y: 20, z: 200}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 8
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: 130, y: 10}
m_SizeDelta: {x: 100, y: 100}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &485542717
MonoBehaviour:
m_ObjectHideFlags: 0
......@@ -413,9 +421,58 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 4381b5042657b804ba0695ce7a8c7128, type: 3}
m_Name:
m_EditorClassIdentifier:
BodySrcManager: {fileID: 0}
BodySrcManager: {fileID: 1330895655}
TrackedJoint: 11
multiplier: 10
multiplier: 200
--- !u!225 &485542718
CanvasGroup:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 485542712}
m_Enabled: 1
m_Alpha: 1
m_Interactable: 1
m_BlocksRaycasts: 1
m_IgnoreParentGroups: 0
--- !u!114 &485542719
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 485542712}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 0}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!222 &485542720
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 485542712}
m_CullTransparentMesh: 0
--- !u!1 &566176846
GameObject:
m_ObjectHideFlags: 0
......
......@@ -927,7 +927,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 4381b5042657b804ba0695ce7a8c7128, type: 3}
m_Name:
m_EditorClassIdentifier:
BodySrcManager: {fileID: 0}
BodySrcManager: {fileID: 183612550}
TrackedJoint: 11
multiplier: 10
--- !u!64 &1680339713
......
......@@ -48,7 +48,8 @@ public class DetectJoints : MonoBehaviour
if (body.IsTracked)
{
var pos = body.Joints[TrackedJoint].Position;
gameObject.transform.position = new Vector3(pos.X*multiplier, pos.Y*multiplier);
//gameObject.transform.position = new Vector3(pos.X*multiplier, pos.Y*multiplier);
gameObject.transform.position = new Vector3(pos.X * (multiplier+50), pos.Y * multiplier/3, multiplier/2);
}
}
......