Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - txes

Pages: [1]
1
General / Re: Moving View
« on: July 24, 2019, 10:14:52 pm »
Imagine the distance between the player and the view is 3 and the view movement speed is 4. In the first call, the code will subtract 4 to the view position so its distance to the player will be 3 - 4 = -1. Next call, the code will add 4 to the view position so its distance to the player will be -1 + 4 = 3, back to its original position in an endless loop. So, in reference to the code you posted, it always happens. It may look it does not, but it does. 
 

2
General / Re: Moving View
« on: July 24, 2019, 09:35:06 pm »
It happens because you are moving the view further than the current distance to the player. You should check if the actual distance is smaller than the views movement speed.

Pages: [1]
anything