Jump to content


- - - - -

velocity issues with gravity and player


22 replies to this topic

#21 paul0n0n

    Member

  • Members
  • PipPip
  • 37 posts

Posted 27 March 2009 - 05:01 PM

oh yea, sorry, I should have but didn't make that connection. So the above code is how to scale a vector in Cartesian. Sweet, this has defiantly been a learning experience thank you Reedbeta for all the help.

#22 monjardin

    Senior Member

  • Members
  • PipPipPipPip
  • 1033 posts

Posted 27 March 2009 - 07:47 PM

The "jumping" about at coordinates beyond 1,000,000 is likely due to floating point errors. This article addresses the issue in the context of a space simulation.
monjardin's JwN Meter (1,2,3,4,5,6):
|----|----|----|----|----|----|----|----|----|----|
*

#23 paul0n0n

    Member

  • Members
  • PipPip
  • 37 posts

Posted 30 March 2009 - 02:33 PM

monjardin said:

The "jumping" about at coordinates beyond 1,000,000 is likely due to floating point errors. This article addresses the issue in the context of a space simulation.

Thank you monjardin. That helped out immensely. Doubles isn't an option for me so I have figured out another way to overcome the floating point errors. instead of the player going to the systems, I bring the systems to the player. so the player is always at 0,0,0.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users