Motion :: MvT RefVec ::

ASTER::ACTION::ObjectControl::motion::MoveTowards::RefVec..

書きかけの項目。

事前に作成された Reference Vector をターゲットに、Pursuer として選択されたオブジェクト・インスタンス群を Reference Vector に格納された x|Y 座標へ移動させる。

Once the movement is completed, the motion group is automatically deregistered. Even after the motion group is deregistered, the selection information of instances chosen as mvt.Tgt or mvt.Prs remains.


利用する前に

ASTER :: ObjectControl :: MvtUtil :: Reference Vector を事前に作成してください。

functions Shapes
Reference Vector :: Hexagonal Hexagon, Trapezoid, Rhombus, Triangle
Reference Vector :: Circumference Circle, Semi-Circle

ASTER の MoveTowards ではユーザ操作で任意インスタンスを 群.A と 群.B にグループ分けし、その選択を記録する補助機能として MvtUtil があります。

群.A と群.B を本ドキュメントでは便宜上、群.A を Target と、群.B を Pursuer と呼称します。

Pursuer はインスタンスであり、Target はインスタンス以外に配列を指定できます。

パラメータ.1

Enter the motion group name to register to the motion controller.

Even instances created from different objects can be grouped with the same motion group name and managed by the controller.

Instances already registered to the controller cannot be duplicately registered under a different group name.

Multibyte strings (such as Japanese) can also be used, but for practical purposes, short names in lowercase letters are recommended.

"test"

When using the name set to the active object as the motion group name for registration, send an empty string.

""

パラメータ.2

複数パラメータを文字列で一括送信します。JSON と連携できます。

e.g.

"  30, 10, 0, 30, 1,  true, 0, true "
  1. timebound (unsigned int) 符号なし整数値
  2. offset1 (int) 符号あり整数値 ( rev.0.9.39 には実装が無い予約領域 )
  3. motion-type (unsigned int) 符号なし整数値 ( 0 | 1 ) ( rev.0.9.39 には 0 以外の実装は無し )
  4. Sleep (unsigned int) 符号なし整数値
  5. Sleep Repetition (int) 符号あり整数値
  6. Sleep Begin Flag (boolean)
  7. Sleep Interval Value (unsigned int) 符号なし整数
  8. offset2 (boolean) ( rev.0.9.39 には実装が無い予約領域 )
現開発中機能なのでパラメータは今後増やす予定があります。rev.0.9.39

その他、注意点

Null Motion は動作が無く、登録されただけではオブジェクトは動きません。

利用法は付属の動作サンプルで、具体的な使用例やイベントが閲覧できます。


登録可能上限、予約変数について »

Maximum Number of Registrations Allowed

The maximum number of instances that can be registered in one motion group is 255. A motion group can register up to 255 groups per motion type.

Type Max Groups Max Instances (Per Group) Total Instances (Per Motion Type)
Null 255 255 255 x 255 = 65,025
Flp | Wrp 255 255 255 x 255 = 65,025
Flp | Wrp::SineWave 255 255 255 x 255 = 65,025
Orbital 255 255 255 x 255 = 65,025
MoveTowards 255 255 255 x 255 = 65,025

The above values are theoretical and exceed the processing capability of CF25, so operation will always be conducted below the maximum values.

Practically, it is assumed that all registered motions will operate with a total number of instances below 100.


About Reserved Variables

From the object instance variables, the reserved variables are as follows:

  1. Alt Variable[0] = Spread ID

  2. Alt Variable[1] = Motion ID

The above variables are used.

Alt Variable[0]

Sequential number. The last object instance created on the frame editor is assigned 0, and then each instance is assigned a value incremented by +1 in order. It is safe to overwrite with any value.

Alt Variable[1]

Motion type. Values ranging from 0 to 4 are assigned according to the motion type at the time of registration. It is a magic number to speed up database searches. If changed, the controller will not be able to search correctly, which is dangerous.

From rev.0.9.x onward, a method of not using Alt Variable[1] has been tested, and it is not used now, but it may be reverted, so please treat Alt Variable[1] as a reserved variable.