MATH.ACOS HELLPPPP!!!!!!

If you have problems installing or running Algodoo, have found a bug or need in-game help - this is it!

MATH.ACOS HELLPPPP!!!!!!

Postby jessebax129 » Sat Apr 03, 2010 5:55 pm

hello i need some halp here:

i'm working on an angle reader for a ''box''

i know the calculation for it:


angle1 = math.acos((hit1(0) + ((hit1(1)^2 + hit1(0) ^ 2)^0.5)

but when i let it calculate it, it does nothing (it freezes on the last number that the variable was)

plz don't begin crying about the variables than they have to be: scene.my.angle1 because i WILL change it later
:?: :?: :?: :?: :?:



EDIT!!:
i saw a scene where they did the same i want to do and it worked with them... so i tried out myself and the solution whas: ''NaN'' (so angle1 = NaN) out of the calculation came ''3'' so math.acos(3) = NaN
jessebax129
 
Posts: 34
Joined: Tue Jan 05, 2010 6:32 pm

Re: MATH.ACOS HELLPPPP!!!!!!

Postby link0007 » Sat Apr 03, 2010 9:37 pm

Don't open two topic about the same thing ;)

the other one is still open though :)
Link: "Surely somebody hates Walter Cronkite.."
Sonic: "Probably.. But somebody hates everyone."
:D
User avatar
link0007
 
Posts: 408
Joined: Thu Jun 11, 2009 2:45 pm


Return to Help / Bug reports

Who is online

Users browsing this forum: No registered users and 2 guests