![]() |
|
MapCharacterを指定に従って自動的に動かすためのクラス [詳解]
Yukar.Engine.MapCharacterMoveMacro.SimpleXZTweener, Yukar.Engine.MapCharacterMoveMacro.XZTweener, Yukar.Engine.MapCharacterMoveMacro.YTweenerに継承されています。
クラス | |
class | SimpleXZTweener |
高さを合わせない(物理を当てにしない)タイプのXZ移動Tweener | |
class | XZTweener |
座標を補間しながら目的のXZ座標までキャラクターを移動させるクラス | |
class | YTweener |
補間しながらキャラクターの高さを移動させるクラス | |
公開型 | |
enum | UsingEasingFunction { Linear = 0 , EaseIn = 1 , EaseOut = 2 } |
使用するイージング関数の種類 [詳解] | |
静的公開メンバ関数 | |
static MapCharacterMoveMacro | addYTweener (MapCharacter character, float time, float startY, float targetY, UsingEasingFunction easingMethod, bool toGround, bool checkCollision) |
static MapCharacterMoveMacro | addSimpleXZTweener (MapCharacter chr, int dir, float speed, Action finishHandler=null) |
static MapCharacterMoveMacro | addXZTweener (MapCharacter chr, int dir, bool shouldKeepMotion, bool fixDir, MapData drawer) |
XZ方向への移動タスクを追加する(指定方向に1歩歩く) [詳解] | |
static MapCharacterMoveMacro | addXZTweener (MapCharacter chr, float x, float y, MapData drawer, Action finishHandler=null) |
XZ方向への移動タスクを追加する(XZ別々に移動する距離を指定するタイプ) [詳解] | |
static MapCharacterMoveMacro | addXZTweener (MapCharacter self, MapCharacter chr, int dir, bool fixDir, bool abortOnFail, bool through, bool ignoreHeight, bool shouldKeepMotion, float targetDirRad, float totalWalk, bool interpolate, float startDirRad, bool fourDir) |
XZ方向への移動タスクを追加する(向きと歩数を指定するタイプ) [詳解] | |
MapCharacterを指定に従って自動的に動かすためのクラス
|
static |
|
static |
XZ方向への移動タスクを追加する(XZ別々に移動する距離を指定するタイプ)
chr | 移動させるキャラ |
x | X方向の移動量 |
y | Y方向の移動量 |
drawer | マップデータ |
finishHandler | 完了ハンドラ |
|
static |
XZ方向への移動タスクを追加する(指定方向に1歩歩く)
chr | 移動させるキャラ |
dir | デジタル方向もしくは特殊方向指定(Script.MoveTypeに対応) |
shouldKeepMotion | モーションを維持するかどうか |
fixDir | 向きを固定するかどうか |
drawer | マップデータ |
|
static |
XZ方向への移動タスクを追加する(向きと歩数を指定するタイプ)
self | タスク実行元(dirがCommand.MoveType.FOLLOWもしくはESCAPEのときに利用) |
chr | 移動させるキャラ |
dir | デジタル方向もしくは特殊方向指定(Script.MoveTypeに対応) |
fixDir | 向きを固定するかどうか |
abortOnFail | 移動失敗時に中断するかどうか |
through | 障害物をすり抜けるかどうか |
ignoreHeight | 高さを無視するかどうか |
shouldKeepMotion | 向きを維持するかどうか |
targetDirRad | 移動方向のラジアン角指定(dirがCommand.MoveType.ANY_RADのときに利用) |
totalWalk | 移動歩数 |
interpolate | 現在の向きから補間しながら歩くかどうか |
startDirRad | 現在の向きのラジアン角指定 |
fourDir | 角度を90度単位に丸めるかどうか(dirがCommand.MoveType.FOLLOWもしくはESCAPEのときに利用) |
|
static |