Unity5質問スレ [転載禁止]©5ch.net
■ このスレッドは過去ログ倉庫に格納されています
0157名前は開発中のものです。
2015/08/20(木) 18:51:07.85ID:Ble4AJoHpublic Transform to;
public float speed = 0.1F;
void Update() {
transform.rotation = Quaternion.Slerp(from.rotation, to.rotation, Time.time * speed);
}
公式のスクリプトリファレンスにあった回転のスクリプトなんですが、特定軸のみ回転をやる場合どうすればいいのでしょうか?
■ このスレッドは過去ログ倉庫に格納されています