How to Implement the New Unity Physics with Unity DOTS!

preview_player
Показать описание
Extra video notes:

-I forgot to explain why you want to change the y size value of the plane's physics shape. It's because the raycast will bug out if the y value is too small!

-There are a few errors that can show up when pressing play, which you can't do anything about. To solve it during runtime, just keep trying to unpause until it lets you run the game.

I updated the job code to implement 4 raycasts rather than one to assure the player is on the ground. Try implementing this functionality on your own, or feel free to use my code as reference!

Here's also the code reference to spawn the player entity!

Lastly here's the github project!

If you have any questions, comments or concerns, please feel free to either send me an email or message me down in the comments, thanks!
Рекомендации по теме
Комментарии
Автор

What if the ground is lava and I want to apply damage as the player touches the ground? How can I detect whether the player actually collides with the ground or not to apply damage?

silentsnooc
Автор

super cool! This helps me a lot to understand ECS!! But for the next videos, please make the resolution smaller, the text is hard to read even in maximazed window and if I need to work together with you, it makes it annoying that I have to keep maximizing the youtube window all the time. Also please avoid this sleepy music, it is nice but it makes the brain shut down during those 40 minutes. Thanks for the tut and keep it up!

raptorswire
Автор

Hey man! cool video but i have a question, How much job system improves the performance? i am working on mobile and all ways scared of multithreading.

oguzhanavc
Автор

Super cool video, thanks. Please lower the piano volume :)

VisionbYNikO