ゴール後に前を向く
ゴール後に前を向く場合は,以下の構造でスクリプトが必要
なお,ゴール前に前を向かせるのは金ちゃん走りになるので,上半身のボーンにマスクを書け,別の制御にする必要があると思う
using UnityEngine;
using System.Collections;
public class heading : MonoBehaviour {
//initialize variable of nav mesh
//initialize variable of bool
//default heading
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
//get navmesh info every frame
//if goal this nave mesh
//then heding call
}
//new function heading call
//if custom heading
//heading to custom vector
//else no custom heading
//heading to default vector
}
