Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: LordHorusNL on October 12, 2017, 05:38:01 PM

Title: Slider Crank Mechanism "Angle between two objects" [SOLVED]
Post by: LordHorusNL on October 12, 2017, 05:38:01 PM
Hey guys, i'm working on a "Slider-Crank" mechanism and having some trouble.

I move the "Back Arm" and the entire setup moves with it, however i cant seem to get the "Front Arm" to rotate as if it had two fixed points of rotation "Points a/b"

Both arms rotate offcourse and the carriage move on the z axis only.

So basically i need a rotation between two objects. I tried every action i could think of but nothing gives a perfect result.

(https://i.imgur.com/ECLhvQb.png)

Any ideas?
Title: Re: Slider Crank Mechanism "Angle between two objects"
Post by: LordHorusNL on October 14, 2017, 11:45:25 AM
Is there a way to animate a float every frame? (curve)

I'm remapping the rotation of the back arm to drive the rotation of the front arm.

However i need to be able to adjust how fast the float ramps up/down at certain points along my path of motion to be able to get the rotaion just right so that the pivot on the carriage stays perfectly horizontal at all times.
Title: Re: Slider Crank Mechanism "Angle between two objects"
Post by: Deek on October 14, 2017, 01:08:27 PM
You can animate a float with the action "Ease Float" (its options are pretty self-explanatory). If that didn't help you further, please elaborate where you are currently stuck.
Title: Re: Slider Crank Mechanism "Angle between two objects"
Post by: LordHorusNL on October 14, 2017, 01:52:41 PM
I figured it out,  using "Sample Curve" in combination with float remap allows me get the result i need :D

Only downside is i need to adjust the curve by hand and thats gonna be tricky.