Нашел ответ.
Сначала необходимо получить объект коллизии с помощью метода get_slide_collision(i)
, где i - номер объекта коллизии, полученный с помощью метода get_slide_count()
.
И уже объект столкновения имеет параметр положения, который содержит вектор точки столкновения. Хотя для меня логичнее было бы назвать это чем-то другим, потому что в другом месте "позиция" - это позиция самого объекта.
Found the answer.
First, you need to get the collision object using the get_slide_collision(i)
method, where i is the collision object number obtained through the get_slide_count()
method.
And already the collision object has a position parameter that contains the collision point vector. Although for me, it would be more logical to call it something else, because elsewhere "position" is the position of the object itself.