アーモリーでのレベル作成

こんにちは!、前のポスト私は今、私たちはそれで私たちの最初のレベルを作成します、アーモリーエンジンについてあなたに話しました。実際、Armoryでレベルを作成することは、同じUnrealまたはUnityで作業することと実質的に同じです。アセットをインポートしたり、そこに独自のレベルを作成したり(Blenderです!)、テクスチャを適用したりすることもできます。前述したように、Armoryはエンジンと密接に関連しているため、エンジンを操作するには、Blenderを操作するためのコツが必要です。飛行機、立方体、またはランプをシーンに追加する方法については詳しく説明しません。エンジンを操作するだけです。準備はいいですか?それでは始めましょう。

まず、既製のテンプレートファイルをダウンロードできます。これに基づいて、何がどのように機能するかを分析します。アーカイブには、playground.blendが必要です。クリックして実行します。それでは、どのような起動オプションがあるか見てみましょう。

Armory Player:

  • Runtime:

    • Krom .

    • Browser .

  • Camera:

    • Scene .

    • Viewport, . , .

.

Cube, Cylinder, Ground, Lamp, Wall, Lamp (spot) . (grid_base, grid _rough), . ? .

, , - , , , , F . - Blender. .

, Timeline 1, , I - Rotation . 60 . ,  R   I - Rotation . .

(Cube), Physics Rigid Body. Collision.

Rigid Body :

  • Active , .

  • Passive .

Light, Spot. .

Shader Editor - World. - HDR .

, . Logic Node - blueprints Unreal Engine 4. . Haxe / .

5 :

  • Events - .

  • Actions - (events) .

  • Logic - , , , …

  • Variables - .

  • Values - .

. Logic Editor - New .   Shift - A.

Armory Project > Flags > Debug Console.

Haxe

“F” Haxe. , , (Rigid Body Active). Empty, - .  Haxe traits Properties - Object - Armory Traits. New Script. Kode Studio - .

package arm;

import iron.object.Object;
import iron.system.Input;
import iron.Scene;
import armory.trait.physics.RigidBody;

class SpawnBox extends iron.Trait {
	public function new() {
		super();
		// We want to get notified every frame
		notifyOnUpdate(update);
	}

	function update() {
		// f key was pressed
		if (Input.getKeyboard().started("f")) {
			// Spawn Box object
			Scene.active.spawnObject("Box", null, boxSpawned);
		}
	}

	// Box just got spawned
	function boxSpawned(o:Object) {
		// Translate cube to the location of empty object
		var traitOwner = object;
		o.transform.loc.setFrom(traitOwner.transform.loc);
		// Box object has a rigid body trait
		// Notify physics system to take new location into effect!
		o.getTrait(RigidBody).syncTransform();
	}
}

 Armory . traits.   PhysicsDrag traits. traits .

Armory UI

- Armory UI. UI, Scene, traits UI Armory Traits. New Canvas Edit Canvas - . Armor UI Text . Properties. .

rmory , Render - Armory Render Path . .

プロジェクトのビルドと公開は、[プロパティ]-[レンダリング]-[武器庫エクスポーター]にあります。起動するプラットフォーム、API、パス、シーンをそれぞれ含む複数のエクスポートプリセットを作成できます。必要なプラットフォーム(Windowsなど)を選択し、[公開]をクリックしますエクスポートおよび収集されたファイルは、三角形(赤で強調表示)-[フォルダーを開く]をクリックして表示できます




All Articles