Swingin' magnet

This commit is contained in:
nothke 2024-08-18 16:19:17 +02:00
parent 464c091655
commit 2de1111cd0
2 changed files with 6 additions and 7 deletions

View File

@ -177,6 +177,7 @@ Transform:
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 3986187515445640859}
- {fileID: 7611546785051987167}
- {fileID: 5222629025906584878}
- {fileID: 1852272770860807465}
- {fileID: 328029784031995857}
@ -671,7 +672,7 @@ PrefabInstance:
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 5974025308748047927}
m_TransformParent: {fileID: 8361960510235702639}
m_Modifications:
- target: {fileID: 1459697740546535004, guid: 146ff579bcab1a343bdcbf24e8b5e462, type: 3}
propertyPath: m_Name
@ -683,11 +684,11 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 5436501012833944904, guid: 146ff579bcab1a343bdcbf24e8b5e462, type: 3}
propertyPath: m_LocalPosition.y
value: -10
value: 3.0155554
objectReference: {fileID: 0}
- target: {fileID: 5436501012833944904, guid: 146ff579bcab1a343bdcbf24e8b5e462, type: 3}
propertyPath: m_LocalPosition.z
value: 0
value: 0.008621216
objectReference: {fileID: 0}
- target: {fileID: 5436501012833944904, guid: 146ff579bcab1a343bdcbf24e8b5e462, type: 3}
propertyPath: m_LocalRotation.w
@ -1216,9 +1217,6 @@ PrefabInstance:
- targetCorrespondingSourceObject: {fileID: 353720696122903966, guid: 6de450877d355da4ea6654f6ce89c7ae, type: 3}
insertIndex: -1
addedObject: {fileID: 6812918532662551388}
- targetCorrespondingSourceObject: {fileID: 353720696122903966, guid: 6de450877d355da4ea6654f6ce89c7ae, type: 3}
insertIndex: -1
addedObject: {fileID: 7611546785051987167}
- targetCorrespondingSourceObject: {fileID: 353720696122903966, guid: 6de450877d355da4ea6654f6ce89c7ae, type: 3}
insertIndex: -1
addedObject: {fileID: 2128323862978452036}

View File

@ -24,6 +24,7 @@ public class SlidingCrane : MonoBehaviour
private void Start()
{
target = transform.position;
xMotion.progress = 0.5f;
}
void FixedUpdate()
@ -51,6 +52,6 @@ public class SlidingCrane : MonoBehaviour
yTransform.localPosition = new Vector3(0, 0, yMotion.progress * yRange);
xTransform.localPosition = new Vector3(x, 0, 0);
cradleRb.MovePosition(cradleTransform.position);
//cradleRb.MovePosition(cradleTransform.position);
}
}