How to make things follow your mouse with Thyme

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

How to make things follow your mouse with Thyme

Postby GamerBro4 » Thu Dec 30, 2010 2:46 am

Can someone tell me NOT how to control a motor with a mouse but control the direction of the object with the mouse? :D
User avatar
GamerBro4
 
Posts: 14
Joined: Tue Dec 28, 2010 8:07 pm

Re: How to make things follow your mouse with Thyme

Postby Rideg » Thu Dec 30, 2010 4:04 am

Calculate the angle between two positions and make and engine that can turn an object. Just to make things clear: Do you want it to follow the cursor or aim at the cursor?
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: How to make things follow your mouse with Thyme

Postby GamerBro4 » Thu Dec 30, 2010 11:12 pm

aim
Image
User avatar
GamerBro4
 
Posts: 14
Joined: Tue Dec 28, 2010 8:07 pm

Re: How to make things follow your mouse with Thyme

Postby Rideg » Fri Dec 31, 2010 1:08 am

Rideg wrote:Calculate the angle between two positions and make and engine that can turn an object.
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: How to make things follow your mouse with Thyme

Postby GamerBro4 » Sat Jan 01, 2011 12:14 am

thx
Image
User avatar
GamerBro4
 
Posts: 14
Joined: Tue Dec 28, 2010 8:07 pm


Return to Thyme scripting

Who is online

Users browsing this forum: No registered users and 6 guests