レス書き込み
スレへ戻る
写
レス栞
レス消
【ゲームエンジン】Unity初心者質問スレBuild1
PC,スマホ,PHSは
ULA
べっかんこ
公式(スマホ)
公式(PC)
で書き込んでください。
名前
メール
引用切替:
レスアンカーのみ
>>981 > >>979 > そりゃあTime.deltaTimeのところをどう書いたらいいかって質問への回答だから、もちろんこのまま貼り付けても期待通りには動かんよ。 > > Vector3 current = new Vector3( 1, 0, 0 ); > Vector3 target = new Vector3( 10, 10, 10 ); > float duration = 3.0f; > float speed; > > void Start() > { > this.speed = (this.target - this.current).magnitude / this.duration; > } > > void Update() > { > this.current = Vector3.MoveTowards( this.current, this.target, this.speed * Time.deltaTime ); > > this.transform.position = this.current; > } > > Vector3.MoveTowardsのリファレンスちゃんと読んでる?
ローカルルール
SETTING.TXT
他の携帯ブラウザのレス書き込みフォームはこちら。
書き込み設定
で書き込みサイトの設定ができます。
・
ULA
・
べっかんこ(身代わりの術)
・
べっかんこ(通常)
・
公式(スマホ)
・
公式(PC)[PC,スマホ,PHS可]
書き込み設定(板別)
で板別の名前とメールを設定できます。
メモ帳
(0/65535文字)
上
下
板
覧
索
設
栞
歴
Google検索
Wikipedia
ぬこの手
ぬこTOP
0.009s