View Single Post
  #6  
Old 06-07-2018, 10:57 AM
Lenticularis Lenticularis is offline
Member
 
Join Date: Jul 2016
Posts: 12
I tried the following code. Do you see mistakes?

Code:
def Movement():
	
	Object.setPosition(0,0,0)
	
	v0 = 0
	t = 0
	a = 1
	
	while t < time:
	
		s = v0*t + 0.5*a*t**2
		vizact.ontimer2(0.1,0,Object.setPosition,0,0,s)
		t = t+0.1
I was not really expecting it to work since it was only a "quick and dirty" solution. But I actually don't see where the problem is.
Reply With Quote