Large diffs are not rendered by default.

@@ -0,0 +1,16 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class SetRotationFromDirection : MonoBehaviour
{
public GameObject joint;

// Update is called once per frame
void Update()
{
Vector3 direction = transform.position - joint.transform.position;
transform.rotation = Quaternion.LookRotation(direction, Vector3.up);
//transform.rotation = Quaternion.LookRotation(direction) * Quaternion.LookRotation(Vector3.right);
}
}
@@ -0,0 +1,35 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 6
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: armTile
m_Shader: {fileID: 10753, guid: 0000000000000000f000000000000000, type: 0}
m_ShaderKeywords:
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _AlphaTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 2800000, guid: ef83cf6d82dbac645a25c444a0104866, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats:
- PixelSnap: 0
- _EnableExternalAlpha: 0
m_Colors:
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _Flip: {r: 1, g: 1, b: 1, a: 1}
- _RendererColor: {r: 1, g: 1, b: 1, a: 1}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -1 +1 @@
8396551dbb1bb78f3cad3ea0cae8d23248445528
d3334b56876029a004468bcd3ccb794182b3da34
Binary file not shown.
@@ -1 +1 @@
fc6e19b0aade4e6140dcccd71c6ae46e13af1a15
feaad0fd6e3f7a78beb8bff642cede8a047fc47d
Binary file not shown.