Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


#Actualbelfegor

Posted 21 May 2013 - 06:15 AM

You should learn to debug your code a little.For example put some breakpoints to see what is going on. You could put one in body of if(Math.Sqrt(...)) statement to see if code that is inside is executed.

 

In my engine 500 would be half of kilometer.


#2belfegor

Posted 21 May 2013 - 06:12 AM

You should learn to debug your code a little.For example put some breakpoints to see what is going on. You could put one in body of if(Math.Sqrt(...)) statement to see if code that is inside is executed and if not then maybe your distance (500) is big so you might want to reduce it.

 

In my engine 500 would be half of kilometer.


#1belfegor

Posted 21 May 2013 - 06:08 AM

You should learn to debug your code a little.For example put some breakpoints to see what is going on. You could put one in body of if(Math.Sqrt(...)) statement to see if code that is inside is executed and if not then maybe your distance (500) is big so you might want to reduce it.


PARTNERS