stable "drone"
			6 posts			 • Page 1 of 1		
	
stable "drone"
Hi every one ! My name is Franck, i'm 18 and i'm french (so sorry for my inglish).
I'm making a "system" to stabilise a circle on a precisly position. i move two line to define to position (one for the "y" and the other for the "x"). The circle move thanks to some propulsors.
But i have a problem, i don't understand why i can't use the "time" variable for the force of my propulsor. In fact, i want to use it when the circle is too far away from the position i want, indeed i want to absorb the acceleration effect. Without this fonction the circle wins in movement so the system never is stable.
But pictures is better than words so i put my file in the post
 open and press play (arrow key to change position). You will quickly see the circle "win in movement" instead of stibilizing.
Concretly i want to use : [force = (100 + 9,91*time)], but whent I look at the propulsor's force i see 0 or 100, so it does not take the time in concideration.
Moreover i want when the laser hits the vertical geen line [time = 0], how to do this ?
So if you know how to resolve this or if you have any idea of the thyme code i can use, i'm volunteer !!
Thank you, Franck.
							I'm making a "system" to stabilise a circle on a precisly position. i move two line to define to position (one for the "y" and the other for the "x"). The circle move thanks to some propulsors.
But i have a problem, i don't understand why i can't use the "time" variable for the force of my propulsor. In fact, i want to use it when the circle is too far away from the position i want, indeed i want to absorb the acceleration effect. Without this fonction the circle wins in movement so the system never is stable.
But pictures is better than words so i put my file in the post
Concretly i want to use : [force = (100 + 9,91*time)], but whent I look at the propulsor's force i see 0 or 100, so it does not take the time in concideration.
Moreover i want when the laser hits the vertical geen line [time = 0], how to do this ?
So if you know how to resolve this or if you have any idea of the thyme code i can use, i'm volunteer !!
Thank you, Franck.
- Attachments
 - 		
 stab I.phz- (18.84 KiB) Downloaded 31 times
 
 
- francky380a380
 - Posts: 48
 - Joined: Tue Dec 17, 2013 8:12 pm
 
Re: stable "drone"
First, try use correct syntax:
force = {100+ 9.91 * sim.time}
			force = {100+ 9.91 * sim.time}
Dream of Algodoo as game development engine...
		- 
				

Kilinich - [Best bug reporter 2010]
 - Posts: 2098
 - Joined: Mon Aug 31, 2009 8:27 pm
 - Location: South Russia
 
Re: stable "drone"
Ok thank you, i didn't know it. So now it work but it's not the good "sentence" :/ Do know have any idea about what i have to use?
			
		- francky380a380
 - Posts: 48
 - Joined: Tue Dec 17, 2013 8:12 pm
 
Re: stable "drone"
francky380a380 wrote:Ok thank you, i didn't know it. So now it work but it's not the good "sentence" :/ Do know have any idea about what i have to use?
What you want to get as result?
Dream of Algodoo as game development engine...
		- 
				

Kilinich - [Best bug reporter 2010]
 - Posts: 2098
 - Joined: Mon Aug 31, 2009 8:27 pm
 - Location: South Russia
 
Re: stable "drone"
My problem is when i move the vertical line (or the other) the "drone" move more and more instead of stabilizing, because it wins in speed and my propulsor can't absorb this gain. 
(you just have to look at my scene to see what happend)
Concretly my result i want is when i move the lines, the drone stays in the blue zone. do you understand ?
			
		(you just have to look at my scene to see what happend)
Concretly my result i want is when i move the lines, the drone stays in the blue zone. do you understand ?
- francky380a380
 - Posts: 48
 - Joined: Tue Dec 17, 2013 8:12 pm
 
Re: stable "drone"
moreover i would like to "reset" the time when a laser hit a certain block. How can i do (because i want to use 9,81*sim.time but if the time increase it's useless so i want it to restart when laser it a certain block
			
		- francky380a380
 - Posts: 48
 - Joined: Tue Dec 17, 2013 8:12 pm
 
			6 posts			 • Page 1 of 1		
	Who is online
Users browsing this forum: No registered users and 4 guests



