lin...@gmail.com
unread,May 7, 2008, 1:53:35 AM5/7/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to APE General
As you know a vector shows direction and distance, but how do i cut
the distance down to its simplest form for every variable?
im using the current code to add force right now, and i would really
like it so that the bAr[bNo] goes at the same speed everytime.
Code:
bAR[bNo].addForce(new VectorForce(false, (mouseX - mainCharacter.px)/
5, (mouseY - mainCharacter.py)/5));
btw the /5 is to slow the projectile when the mouse is really far away
from the player