Thread: The GK bow
View Single Post
  #11  
Old 02-27-2004, 03:46 PM
Polo Polo is offline
Classic Systems Admin
Join Date: Sep 2002
Location: Vancouver, Canada
Posts: 735
Polo is on a distinguished road
Send a message via AIM to Polo
(Note: I don't have Graal installed here, so I cannot check the definition of power within the shoot command. As a result i'm giving pointers to 2 solutions, so pick whichever one is relevant for the shoot command (ie: whether power is launch velocity or distance to travel))

Solution One - Velocity Based
If power is related to the speed at which the projectile is launched, then the distance travelled if i remember correctly would be proportional to power^2. As I dont know how close the Graal physics are to real life, I can't verify that, nor am I able to give you any constants, as I do not know what constants graal uses internally. You can rearrange to find power from distance fairly easily.

Solution Two - Distance Based
If the power is related to how far you want it to travel, then you can use a rearrangement of the pythagorous theorem to calculate the distance.

If you still need help after this, send a Forum PM, or drop me an e-mail.
__________________
Be good little players, or Master Storm will ban you!



Proof that the staff are crazy..
*Ghost Pirate: I'm a little teacup short and stubbe here is my raygun here is my butt
DragonX: Jumping jack rabbits Batman! Our eggo waffles have been stolen! To the batmobile Robin!
X-Mann (RC): I have a head ache
Reply With Quote