Загрузка страницы

Setting Up a Simple Laser System

In this video a basic laser system is added to a space scene. A lot of optimization is still needed, but adding a new laser to the scene is as simple as dragging in a prefab.

Models were built in Asset Forge by Kenney (see link below for more information).

https://kenney.nl/tools/assetforge

Scene was set up in Unity3d.

The basic steps for creating a simple laser system based on this video are:
1. Creating a basic Laser Emitter as an empty game object, and making it a prefab.
a. Add a script that takes a prefab, and a fire rate
b. Instantiate a laser at the transform of the emitter
2. Create a laser prefab, starting from an empty game object, which has:
a. A script that moves the laser, and destroys itself it after so many seconds
b. A cylinder that is:
i. Rotated on X by 90 degrees
ii. Translated on Z so the origin is at 0
iii. Scaled an appropriate size on all dimensions.

Видео Setting Up a Simple Laser System канала Bit Galaxis
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
16 июля 2019 г. 8:21:36
00:07:06
Яндекс.Метрика