- Home /
Question by
Cactatchee · Jun 01, 2016 at 06:03 AM ·
2d-platformerrigidbody2dshootingprojectilemouseposition
Getting 2D projectiles that fire in the direction of the mouse position to work in unity 5?
All solutions that I've been able to find online are too outdated and don't work anymore. So far i have a bit in my playercontroller script that instantiates a bullet gameobject at a firepoint but i haven't gotten it to work so that the bullet travels in the direction of the mouse location. How do I add a force or change the velocity of the rigidbody of the bullet so that it does that in unity 5?
Comment