View Single Post
  #7  
Old 06-08-2018, 07:00 AM
Lenticularis Lenticularis is offline
Member
 
Join Date: Jul 2016
Posts: 12
Never mind. Managed to do it with an even simpler solution. It is not entirely precise, but it works quite well. It isn't even shaking. Here is the code I used:

Code:
def Movement():

	Object.setPosition(0,0,0)

	v0 = 0
	t = 0
	a = 5

	while t < time:
	
		s = v0*t + 0.5*a*t**2
		Object.setPosition(0,0,s)
		t = t+0.0168	#Adjustement based on processing speed of computer (lazy amateur workaround)
Reply With Quote