0
$\begingroup$

I am trying to make an object pull towards another object, then push away in a consistent, even manner. I want them to be rigid bodies and I would like to do this with rigid body constraints and no position/rotation key frames, if possible. I get that a motor drags an object towards and a piston pushes away, but I can't figure out how to combine them.

The end goal is to make a semi-autonomous "hopping machine" that's attach a character to. The character will have some ragdoll physics. I've been inspired by Nikita Diakur's "Fest."

$\endgroup$
2
  • $\begingroup$ do you mean the car movement? $\endgroup$ Commented Sep 13 at 10:50
  • $\begingroup$ Yeah, like a car movement, a piston that pushes and pulled back into place. $\endgroup$ Commented Sep 13 at 13:08

1 Answer 1

0
$\begingroup$

you can use a (linear) motor, but you still have to use keyframes to change direction (or put on and off).

So i made here a very very basic example:

Plane with rigid body passive. Cube with rigid body active.

One constraint: motor linear, keyframed three position, up, down, up. then added cycle modifier.

enter image description here

Result:

enter image description here

if you want to move it "perfectly" up, add another constraint: slider

result:

enter image description here

$\endgroup$
1
  • 1
    $\begingroup$ Thank you! Working well. Lots of other dynamics and weights to figure out, but the hopping machine hops. $\endgroup$ Commented Sep 14 at 18:59

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.