Quantcast
Channel: Latest Questions by Wrymnn
Viewing all articles
Browse latest Browse all 131

2D Spaceship like movement without Rigidbody2D

$
0
0
How would you go about making 2D top down spaceship movement WITHOUT rigidbody2D? You may ask, why not to use it? Well my answer is, because when I have a lot of objects with rigidbody2D (200+), the physics updates takes 40% + of memory in profiler(20fps, with optimized code). So, I can move my object forward, backward and rotate with slerp. Ofc I speed up the object slowly like in space in transform.translate. But how to make it slide? - I would need to get my current velocity - But when I change direction, I apply and slowly degrade the force in the vector/way the object was moving. And this is a part I don`t know how to do. Please would you give me some hints? Or maybe a code :D Didn`t find it anywhere, everybody uses rigidbody2D.

Viewing all articles
Browse latest Browse all 131

Trending Articles