Re: DT in BGT

So, I found out what the issue appears to be.  I just am not sure why.  I put in code to show me values of cosine(theta) and sine(theta).  Theta is 4.41568300754565, and cosine(theta) shows as 1.  I am not sure if that's correct.  Sine(theta) shows as 0.  That is why vel.y is 0, because anything multiplied by 0 is 0.  But how the hell is sine(4.41568300754565) 0?  And it apparently remains 0 no matter what number of degrees or radians is chosen.  The hell?
UPDATE:  I did the math on a calculator, and this is what it shows.  According to BGT, number of degrees is 253, theta is 4.41568300754565.  According to my calculator, this is correct. This is where it gets weird.  According to BGT, cosine(4.41568300754565) = 1.  According to my calculator, cosine(4.41568300754565) = negative 0.29237170472274039037835968119181.  Again, things don't match.  Then, BGT says that sine(4.41568300754565) = 0.  My calculator says that sine(4.41568300754565) = negative 0.95630475596303436166701832248782.  Yet again, these don't match.  And none of them are 0.  So vel.y should never be 0.  And these are doubles, so they should be able to handle negative numbers with decimals just fine.  In fact, they return decimal numbers just fine.  Not sure why the numbers aren't matching, since the original theta of 4.41568300754565 matched on both BGT and my calculator.  But that's the issue, it thinks sine(4.41568300754565) is 0, when actually it is not.  How do I fix this?

-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
  • ... AudioGames . net Forum — Developers room : JLove via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : CAE_Jones via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : JLove via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : JLove via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : JLove via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : CAE_Jones via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : JLove via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : JLove via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : JLove via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : JLove via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : JLove via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : JLove via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : JLove via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : JLove via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : CAE_Jones via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : JLove via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : JLove via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : JLove via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : JLove via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : CAE_Jones via Audiogames-reflector
  • ... AudioGames . net Forum — Developers room : JLove via Audiogames-reflector

Reply via email to