Need help with spawning a spring

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

Need help with spawning a spring

Postby Rideg » Thu Jul 01, 2010 12:22 am

Well basically, I want to spawn a spring that's attached to the object that creates it and to the object underneath the mouse.
I tried to make something that uses world0pos := e.pos; world1pos := app.mousePos; but that didn't work.

Is this even possible?
If so please teach me how.

Thank you

//Raydeg
Image
make sure to check out my work.
User avatar
Rideg
 
Posts: 948
Joined: Tue Dec 15, 2009 5:17 pm
Location: Östersund, Sweden

Re: Need help with spawning a spring

Postby simey j dude » Thu Jul 01, 2010 12:39 am

User avatar
simey j dude
 
Posts: 61
Joined: Sat Sep 05, 2009 3:11 am
Location: under your bed!

Re: Need help with spawning a spring

Postby Rideg » Thu Jul 01, 2010 9:27 pm

:( I checked that but it doesn't solve my problem
Image
make sure to check out my work.
User avatar
Rideg
 
Posts: 948
Joined: Tue Dec 15, 2009 5:17 pm
Location: Östersund, Sweden

Re: Need help with spawning a spring

Postby Mystery » Fri Jul 02, 2010 1:52 am

There is an entire half of that tutorial dedicated to springs.
I mean if you read any of that you would see the problem, i mean the 5th freak'en line in plain English your problem should be solved.
You need to know the geomID of the first and second objects that are going to be attached.
User avatar
Mystery
 
Posts: 2802
Joined: Thu Sep 03, 2009 1:16 pm
Location: Southern Australia

Re: Need help with spawning a spring

Postby Rideg » Fri Jul 02, 2010 2:35 pm

*facepalm* That wasn't even the problem. Forget it I fixed it...
Image
make sure to check out my work.
User avatar
Rideg
 
Posts: 948
Joined: Tue Dec 15, 2009 5:17 pm
Location: Östersund, Sweden


Return to Thyme scripting

Who is online

Users browsing this forum: No registered users and 5 guests