Unity DOTS Tips - The Code of Manually Moving Dynamic Bodies in The Unity DOTS Physics Samples

Опубликовано: 07 Август 2026
на канале: DevViktoria
41
1

[Entities 0.17]
In the Unity DOTS Physics Samples you can move dynamic bodies around with the mouse. In this video I am going to show you my analysis of the code behind this feature.

00:00 Introduction
00:54 Unity DOTS Physics Samples uses both input handling methods
01:20 Physics Scene Basic Elements prefab
02:25 Mouse Pick Behaviour in the Unity Editor
02:55 Mouse Pick component
03:43 Mouse Pick System for converting the input into Spring Data
11:30 Mouse Spring System for setting the velocity for the dragged entity
13:10 Checking the systems in the Entity Debugger
14:14 Closing words

Links I found useful when I was making the video:

Unity Physics Samples github repository
https://github.com/Unity-Technologies...

IJob documentation
https://docs.unity3d.com/2021.1/Docum...