POD: Heart Diagram Exercise 02

 

Screenshot from Animation

Key Functions :

  • Camera Facing Function 
  • OffSet Animation 
  • Timeline Animation 
  • Multi Camera Layering 
  • Cinemachine 
  • Stop/Start Animation
  • Click Notation On/Off 
Scripts : 
AnimToggle Script 
using System.Collections;

using System.Collections.Generic;
using UnityEngine;
public class AnimToggleValue : MonoBehaviour
{
    public string AnimValue = string.Empty;
    public float MaxValue = 1.0f;
    private float DestValue = 0f;
    private float CurrentValue = 0f;
    public float Speed = 2f;
    private Animator ThisAnimator = null;
    private void Awake()
    {
        ThisAnimator = GetComponent<Animator>();
        DestValue = CurrentValue = 0f;
    }
    public void ToggleValue()
    {
        DestValue = (DestValue < MaxValue) ? MaxValue : 0f;
    }
    private void Update()
    {
        CurrentValue = Mathf.Lerp(CurrentValue, DestValue, Time.deltaTime * Speed);
        ThisAnimator.SetFloat(AnimValue, CurrentValue);
        //Debug lines 
        if (Input.GetKeyDown(KeyCode.Space))
        {
            ToggleValue();
        }
    }
}

Rotate Toward Camera Script  
using System.Collections;

using System.Collections.Generic;
using UnityEngine;
public class CameraFacing : MonoBehaviour
{
    void LateUpdate()
    {
        transform.LookAt(transform.position + Camera.main.transform.rotation * -Vector3.forward,
                         Camera.main.transform.rotation * Vector3.up); 
    }
}

Simple Camera Controller Script 

using System.Collections;

using System.Collections.Generic;

using UnityEngine;

public class CameraFacing : MonoBehaviour

{

    void LateUpdate()

    {

        transform.LookAt(transform.position + Camera.main.transform.rotation * -Vector3.forward,

                         Camera.main.transform.rotation * Vector3.up); 

    }

using System.Collections;

using System.Collections.Generic;

using UnityEngine;

public class CameraFacing : MonoBehaviour

{

    void LateUpdate()

    {

        transform.LookAt(transform.position + Camera.main.transform.rotation * -Vector3.forward,

                         Camera.main.transform.rotation * Vector3.up); 

    }

}

POD: Heart Diagram Exercise 01

 

Heart Diagram 
I am currently researching Medical Apps and building on POD, a podiatry training app prototype I designed and produced last year as part of the MA program at Falmouth University. 
Here I am using a heart prefab model which has animation and label prefabs. I am interested in how the project uses Cinemachine and Timeline to produce a short animated film that illustrates the heart as a model and which could be potentially used in a VR app. 
POD vr : Diabetic Foot Screen
Virtual Reality Podiatry Training App
I currently have a plastic foot model from which I would like to build a similar model using blender and which I could animate and label in a similar way. This would form part of the VR aspect of my POD Prototype. 
Learning how to produce nice short animated sequences will also help me to create the short cut scenes for Lunarium.