Unity 2d C# Перетаскивание с вращениемC#

Место общения программистов C#
Anonymous
Unity 2d C# Перетаскивание с вращением

Сообщение Anonymous »


I still don't understand C# very well. but I have an idea for a game that I want to make.

I have a square object. I need it to be able to be dragged with the mouse, but at the same time it rotates depending on which point it is taken.

I also want to figure out how to make it impossible to move it through the collider using the mouse.

I've seen mechanics like this in several games. The most familiar example to me is people playground.

I watched a lot of videos on YouTube and searched on the Internet, but I found only the most primitive one, where the drag() method itself is explained.


Источник: https://stackoverflow.com/questions/780 ... h-rotation

Вернуться в «C#»