How to draw a figure such as cycloid using the function
			3 posts			 • Page 1 of 1		
	
How to draw a figure such as cycloid using the function
Hello.Can I draw a figure by function using script ? If it's possible ,I wish to draw cycloid.  Would you help me.  Thank you.
			
		- mc2lv
- Posts: 1
- Joined: Mon Jan 26, 2015 4:19 am
Re: How to draw a figure such as cycloid using the function
Sure, use scene.addPolygon for that.
Also, there is a thyme basics book:
http://ru.scribd.com/doc/49755166/Thyme-Tutorial-The-basic-and-advanced-techniques
			Also, there is a thyme basics book:
http://ru.scribd.com/doc/49755166/Thyme-Tutorial-The-basic-and-advanced-techniques
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: How to draw a figure such as cycloid using the function
Example (put code in console, press enter):
			- Code: Select all
- {s:=[]; for(41, (i)=>{t := 2* math.pi/40 * i; s = s ++ [[t-math.sin(t),1-math.cos(t)]]}); scene.addPolygon{pos := [0,0]; surfaces := [s]}}()
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
			3 posts			 • Page 1 of 1		
	Who is online
Users browsing this forum: No registered users and 4 guests




