LoginSignup
0
0

More than 5 years have passed since last update.

Endless Runner 追加機能 Magnetic #UE4Study

Last updated at Posted at 2017-02-18

Endless Runner 追加機能 Magnetic

Endless Runnner
http://qiita.com/gansaibow/items/385431852e83b377d710

RunCharacterに関数:MagneticItemを追加する

MagneticItem

Input

変数名 変数の型
DeltaTime float

image

image

変数を追加する

変数名 変数の型 デフォルト値
IsMagnetic Boolean True
MagneticRadius float 1500.0

image

Local 変数を追加する

変数名 変数の型
TmpDeltaTime float

image

image

処理のイメージ

image

左側
image

右側
image

RunCharacterのイベントグラフ:Tick処理で関数:MagneticItemを呼び出す

image

プレイして確認する

image

参照

Magnet
https://forums.unrealengine.com/showthread.php?65770-Magnet

UE4BP Make Literal 型ノード
http://qiita.com/gansaibow/items/8e4a8cd33b412274c637

2点間の座標が分かると出来ること
http://qiita.com/gansaibow/items/9bedde0d69f76686a347

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0