![]() |
Concept Of A Rocket Launcher
Here is just a base of what iv made, any suggestions are welcome.
Also if you know how to make the rotation correct by where the mouse is it would be appriciated. i havnt done any gfx for it yet as i suck at gfx. PHP Code:
|
Determining the angle between two objects.
1. Calculate the Delta between the Origin and the Target 2. Use getangle to return the angle based on the Delta Note: Delta = Final - Initial PHP Code:
If you want the Graal direction, you can just swap out getangle with getdir and it'll return a number in |0,3|. Also: PHP Code:
PHP Code:
PHP Code:
|
Thanks for the feedback, il be sure to test out angles and such.
do you happen to know how to make the rotation of the image aim towards the mouse? |
Set the image's rotation to the angle towards the mouse.
|
ahh i feel so stupid now, you told me how to do it and i was too blind to see it.
|
All times are GMT +2. The time now is 07:31 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.