Far away hinges

About advanced scenes, and the Thyme scripting language used in Algodoo.

Far away hinges

Postby Kilinich » Thu May 13, 2010 10:49 pm

Did you know hinges can be spawned far away from objects?
Rating: rated 6
Filesize: 14.14 kB
Comments: 10
Ratings: 4
download


How to make it:

1) To know geomID of objects set geomID=1 in script window and then do-redo something (after that you will se real geomID in script window)
2) In console type scene.addHinge({geom0=xxx; geom1=yyy; pos=[a,b]})

that's all.
Dream of Algodoo as game development engine...
User avatar
Kilinich
[Best bug reporter 2010]
 
Posts: 2098
Joined: Mon Aug 31, 2009 8:27 pm
Location: South Russia

Re: Far away hinges

Postby RA2lover » Fri May 14, 2010 6:50 pm

Paradigm29 already did such a thing before lots of users knew scripts existed.(phn editing)

i just copy the hinge's code to obtain its geoms then change its position. doesn't get much easier than that :lol:
Jrv wrote:
TC42 wrote:Quite honestly, I didn't think anyone on 4chan has that good a use of grammar, spelling, usage, mechanics, ect.
But I've never been there, so I may be wrong.


GTFO newfgt
User avatar
RA2lover
 
Posts: 607
Joined: Mon Aug 31, 2009 8:43 pm
Location: Brazil

Re: Far away hinges

Postby Kilinich » Fri May 14, 2010 9:57 pm

RA2lover wrote:Paradigm29 already did such a thing before lots of users knew scripts existed.(phn editing)

i just copy the hinge's code to obtain its geoms then change its position. doesn't get much easier than that :lol:


Clever move with hinge re-position via copy-paste!
Dream of Algodoo as game development engine...
User avatar
Kilinich
[Best bug reporter 2010]
 
Posts: 2098
Joined: Mon Aug 31, 2009 8:27 pm
Location: South Russia

Re: Far away hinges

Postby Kilinich » Fri May 14, 2010 10:34 pm

I know that feature before but i didn't see any implementation... :roll:
So here it is mine: Another softwheel.

Rating: rated 7.9
Filesize: 32.96 kB
Comments: 16
Ratings: 12
download


Zoom out a bit and select all to see hinges.
Dream of Algodoo as game development engine...
User avatar
Kilinich
[Best bug reporter 2010]
 
Posts: 2098
Joined: Mon Aug 31, 2009 8:27 pm
Location: South Russia

Re: Far away hinges

Postby Rrobba » Sun May 16, 2010 11:18 am

Cool, I didn't know it could be done like that, but I've always used a simpler method.
Image
I don't suffer from insanity. I enjoy every minute of it.
User avatar
Rrobba
[Best Sig 2010]
 
Posts: 1480
Joined: Mon Aug 31, 2009 6:01 pm
Location: Gibraltar


Return to Thyme scripting

Who is online

Users browsing this forum: No registered users and 3 guests