B
B
Bur-Burito2016-12-13 18:57:59
Game development
Bur-Burito, 2016-12-13 18:57:59

How in Unity, in 2d mode, to make sure that the character does not change its angle when it comes into contact with an obstacle in motion?

View from above. It is necessary that the character go around the walls. Added Box Collider 2D to the wall, Box Collider 2D and RigidBody 2D to the character, zeroed gravity. When the character touches the edge of the wall, the movement continues to change its angle. I wish he would just stop in that case. How can this be achieved?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GreatRash, 2016-12-13
@Bur-Burito

Constraints -> Freese Rotation

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question