Browse Search Popular Register Upload Rules User list Login:
Search:
Mouse Controlled Arm Failure [V.1.1]

Image:
screenshot of the scene

Author: FruitMonger

Group: Default

Filesize: 40.78 kB

Date added: 2012-08-29

Rating: 5

Downloads: 588

Views: 665

Comments: 2

Ratings: 1

Times favored: 0

Made with: Algodoo v2.0.2 Edu

Tags:

Scene tag

Another thing I'll need a little help with. It's supposed to adjust the angle of the lighter colored arm so the darker colored arm points at the mouse cursor.

But I need a little help making the lighter arm behave properly. I have everything else set up how I need it (I think), but I just can not for the life of me figure out how to make it work.

There are a lot of different links between the different parts, meaning the fixates and axles are scripted so they alter the parts they're connected to, and the parts those parts are connected to, and so on.

Update 1.1.: I tried most of what you told me, s_noonan, but I couldn't quite understand steps four, five, and six (mostly 4, but in order to fully understand 5 and 6, I'd probably have to understand step 4), so I tried to improvise my own twist on it after I did everything I did understand.

I think I'm really close to having it work properly, but the problem now is when you get the mouse too far away from the light arm background hinge (further away from the hinge than the white circle is), it screws up.

I know I could get it if I tried for a few more hours, but right now my brain is exhausted, so do you think you could help me a bit more, please:D?

P.S.: If my updated description doesn't make sense, sorry about that, but working on this scene has made me learn a lot in a short amount of time, and it's making my brain tired. (even though it's only about 1:30 P.M. as of this update)

Total work time so far: 6+ hours.
Last edited at 2012/08/29 18:38:57 by FruitMonger
Please log in to rate this scene
edit
Similar scenes
Title: Mouse Controlled Drawing Board
Rating: 4.8125
Filesize: 87.95 kB
Downloads: 1273
Comments: 3
Ratings: 10
Date added: 2009/12/23 17:38:34
Made with: Algodoo before v1.8.5
Rating: rated 4.8
download
Title: Stick balancing with the mouse
Rating: 7.2308
Filesize: 5.94 kB
Downloads: 1978
Comments: 13
Ratings: 7
Date added: 2009/03/23 20:58:31
Made with: Phun
Rating: rated 7.2
download
Title: First Mouse Controlled Computer Ever! - AHOX Mouse controlled computer
Rating: 3.6875
Filesize: 359.16 kB
Downloads: 2439
Comments: 10
Ratings: 10
Date added: 2009/11/15 13:57:09
Made with: Algodoo before v1.8.5
Rating: rated 3.7
download
Title: Mouse Controlled Crane V1.2
Rating: 5
Filesize: 32.98 kB
Downloads: 1861
Comments: 2
Ratings: 1
Date added: 2012/01/19 17:25:25
Made with: Algodoo v2.0.2 Edu
Rating: rated 5
download
Title: Chevrolet Suburban (Mouse Controlled)
Rating: 5.6
Filesize: 1.3 MB
Downloads: 2051
Comments: 2
Ratings: 4
Date added: 2010/02/28 23:49:12
Made with: Phun
Rating: rated 5.6
download
Title: Mouse Controlled AHOX Computer v2 - WORKING !!!
Rating: 5.05
Filesize: 338.32 kB
Downloads: 3544
Comments: 21
Ratings: 14
Date added: 2009/11/21 18:31:19
Made with: Algodoo before v1.8.5
Rating: rated 5
download
Responses to this scene
show list
Title: Mouse Controlled Arm Example
Rating: 5
Filesize: 39.4 kB
Downloads: 787
Comments: 2
Ratings: 1
Date added: 2012/08/30 01:44:26
Made with: Algodoo v2.1.0
Rating: rated 5
download
I suspect that when you say "adjust the angle of the lighter colored arm so the darker colored arm points at the mouse cursor" you actually mean "adjust the angle of the arms so the center of the white circle is at the mouse cursor". Otherwise, you could just turn off collision layers, lock the light arm, and the darker arm would always point at the mouse cursor.

If you wish to have the white circle track the mouse cursor then do the following:
1. Place the black circle on the leftmost (light arm to background) hinge.
2. Calculate the distance between the black circle and the mouse position (d1).
3. Let L1 and L2 equal the length of the arms.
4. Calculate the included angle (a1) between L1 and L2 of a triangle of sides L1, L2,and d1.
5. Set the angle between L1 and L2 to a1 by using the bendTarget property of the hinge.
6. Use feedback control used in your "Mouse Pointer" scene to rotate the light arm to background hinge in a direction to minimize white circle to mouse position distance. In other words, treat the two arm combination, with the fixed angle between the arms, as a single arm.

Note: An alternative to step 6 would be to calculate the desired angle of the light arm to background hinge and set its bendTarget property.
Wake up Fruitmonger. Time to make more scenes. If this scene is giving you a hard time, then move on to something else and maybe get back to this scene later.