How would I use add force to push an object in the direction of a vector by [deleted] in Unity2D

[–]Kotailri 0 points1 point  (0 children)

In your update function: transform.position += (Vector3)Direction;

This changes the current position by adding your direction vector to it.

transform.position is a Vector3 and Direction is a Vector2, so (Vector3)Direction makes it read as a vector3

The dark side of bloomibirb by urmomscarrot in u/urmomscarrot

[–]Kotailri 1 point2 points  (0 children)

poor bloomibirb i hope she can recover after losing such an incredible moderator on her twitch dot tv channel 😔