i am looking to make a rocket that can turn towards and chase my player.
i have code that does that - it turns towards him a little using alignentity and moves forward.
the deal is that i want the rocket to slide sideways as it is turning, instead of always going forward - it needs to have sideways momentum. if you turn the rocket 90 degrees it shouldn't immediately start moving 90 degrees to its initial vector, it would still slide in the original direction for a bit. like your ship in asteroids.
is there any code for simulating this? i need it only in 2d, essentially because my playfield is flat.
thanks for any help!
i have code that does that - it turns towards him a little using alignentity and moves forward.
the deal is that i want the rocket to slide sideways as it is turning, instead of always going forward - it needs to have sideways momentum. if you turn the rocket 90 degrees it shouldn't immediately start moving 90 degrees to its initial vector, it would still slide in the original direction for a bit. like your ship in asteroids.
is there any code for simulating this? i need it only in 2d, essentially because my playfield is flat.
thanks for any help!