Constant RPM Gearbox problem
			2 posts			 • Page 1 of 1		
	
Constant RPM Gearbox problem
Hey guys! I'm busy with a car, but I'm stuck at the gearbox. I want to make a constant RPM gearbox.
It works like this:
The input-circle has a radius of 2 meter and the output-circle a radius of 1 meter.
When the input-speed = > 50 rad/s the output has to grow.
When the input-speed = < 50 rad/s the output has to crimp.
(The output radius must be smaller than 2.95m and bigger than 0.55)
But the output circle doesn't do anything!
Here is the script im using on the input:
And here is the script im using for the output:
Yes is set the scene.my.radius = 1 and scene.my.rads_setting = 50
It would be awesome if you guys could help me out
							It works like this:
The input-circle has a radius of 2 meter and the output-circle a radius of 1 meter.
When the input-speed = > 50 rad/s the output has to grow.
When the input-speed = < 50 rad/s the output has to crimp.
(The output radius must be smaller than 2.95m and bigger than 0.55)
But the output circle doesn't do anything!
Here is the script im using on the input:
Spoiler: show
And here is the script im using for the output:
Spoiler: show
Yes is set the scene.my.radius = 1 and scene.my.rads_setting = 50
It would be awesome if you guys could help me out
- Attachments
 - 		
 Constant RPM Gearbox.phz- Constant RPM Gearbox
 - (19.94 KiB) Downloaded 20 times
 
 
- 
				

nansjes1 - Posts: 4
 - Joined: Thu Jun 13, 2013 6:19 pm
 
Re: Constant RPM Gearbox problem
Incorrect syntax in scrips.
Should be something like this:
			Should be something like this:
- Code: Select all
 (e)=>{
e.this.angvel < scene.my.rads_setting ? {scene.my.radius = scene.my.radius - 0.1} : {scene.my.radius = scene.my.radius + 0.1}
}
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
 
			2 posts			 • Page 1 of 1		
	Who is online
Users browsing this forum: No registered users and 2 guests



