Quantcast
Channel: Programming (In-game)
Viewing all articles
Browse latest Browse all 903

Rotation scripts

$
0
0
I want to know what the best way is to rotate a ship to face a certain direction by script.

I have been using the script below and it works fine. Most of it I've written myself (except for Joe's grid2world methods). However I have no idea if there is anything better out there. I would really like it if there was a rotation-method that ran faster (CPU-wise), or has less lines or just performs better to do the same thing. I am not really interested in "rolling", mostly pitch and yaw....

Rotation scripts

Viewing all articles
Browse latest Browse all 903

Trending Articles