blending between meshes
Im working on the death animation for my enemys, and I want to have them melt into a puddle, how would I transition their mesh into a sphere?
Current Code :
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class enemyManipulation : MonoBehaviour {
public int Health = 100;
public Slider Slider;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
Slider.value = Health;
if(Health <= 0) {
//Transition Mesh
}
}
}
Answer by FortisVenaliter · Feb 09, 2017 at 04:00 PM
Short answer: You can't. Use an effect to cover up the transition.
Long answer: You'd have to build the mesh specifically to be morphed this way, and find a way to animate it as such. This would be incredibly difficult even for a skilled technical artist. Note that even in AAA games, they almost never do straight morphs, and usually cover it up with obscuring geometry or particle effects.
Your answer
![](https://koobas.hobune.stream/wayback/20220612110703im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Fade In Fade Out in Carboard 0 Answers
Generate Polygon Plane from Array 0 Answers
Hiding part of mesh 0 Answers
Can someone please help me with mesh extrusion 0 Answers
How do i use lines to calculate triangles on mesh?? 0 Answers