Unity5質問スレat GAMEDEV
Unity5質問スレ - 暇つぶし2ch158:名前は開発中のものです。
15/08/20 18:51:07.85 Ble4AJoH.net
public Transform from;
public Transform to;
public float speed = 0.1F;
void Update() {
transform.rotation = Quaternion.Slerp(from.rotation, to.rotation, Time.time * speed);
}
公式のスクリプトリファレンスにあった回転のスクリプトなんですが、特定軸のみ回転をやる場合どうすればいいのでしょうか?


次ページ
最新レス表示
レスジャンプ
類似スレ一覧
スレッドの検索
話題のニュース
おまかせリスト
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch