Загрузка...

Handle both PHYSICS and NON-PHYSICS in Unity with ONE script !

Some projects use Rigidbody physics, while others move objects directly using Transform updates. In this video we design an abstraction layer that allows our system to support both approaches without duplicating code.

We implement an IMovable interface that provides:
• position access
• velocity information
• optional Rigidbody physics support
• force transfer during impacts

This approach allows projectiles and structures to work correctly whether your game uses physics simulation or custom movement logic.

The goal is to keep the weapon system flexible enough to adapt to different types of Unity projects.

Full playlist
https://www.youtube.com/playlist?list=PLxYioVpm2SlK_uFgLxEVaAWrkGor7fJUF

Next Video
https://youtu.be/rDSZwkExazc

Free package download
https://codingmojo.itch.io/weaponizer

Видео Handle both PHYSICS and NON-PHYSICS in Unity with ONE script ! канала Coding Mojo
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять