zed_katarn Posted December 14, 2006 Share Posted December 14, 2006 Hi all,I'm trying to make a simple game using php, and i want to calculate the x and y speeds of an object traveling from its current position to a point (x,y).For example:A ship with a speed of 400m/s travelling to a point 20x and -400y from its current location would need (x) m/s on the x direction, and (y) m/s on the y direction.I'm not a physicist and most of the help i have found on the internet involves other languages.Any help would be great.Thanks,K Link to comment https://forums.phpfreaks.com/topic/30638-php-vectors/ Share on other sites More sharing options...
zq29 Posted December 14, 2006 Share Posted December 14, 2006 I'm no physicist either, but if you can find some example code in a different language, it shouldn't be too hard to convert into PHP syntax... Link to comment https://forums.phpfreaks.com/topic/30638-php-vectors/#findComment-141301 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.