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: 666

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 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
Title: Mouse controlled crane V2
Rating: 6
Filesize: 32.85 kB
Downloads: 1323
Comments: 3
Ratings: 3
Date added: 2011/01/30 18:04:37
Made with: Algodoo before v1.8.5
Rating: rated 6
download
Title: TURBO TANK mouse controlled
Rating: 5
Filesize: 0.86 MB
Downloads: 651
Comments: 0
Ratings: 1
Date added: 2010/06/16 18:35:49
Made with: Algodoo before v1.8.5
Rating: rated 5
download
Title: ForkLift (mouse controlled)
Rating: 6.7273
Filesize: 321.29 kB
Downloads: 2261
Comments: 2
Ratings: 5
Date added: 2010/03/09 05:46:11
Made with: Algodoo before v1.8.5
Rating: rated 6.7
download
Title: Apache with Mouse Controlled Canon
Rating: 6.3636
Filesize: 282.61 kB
Downloads: 2166
Comments: 9
Ratings: 5
Date added: 2010/12/22 10:23:30
Made with: Phun
Rating: rated 6.4
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
Responses to this scene:
Title Author Rating Downloads Comments Date added
Mouse Controlled Arm Example s_noonan 5 (1 vote) 787 2 2012/08/30 01:44:26
show grid
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.