# Joint and IK for car engine

**URL:** https://forum.highend3d.com/t/joint-and-ik-for-car-engine/44667
**Category:** Maya
**Tags:** new-user
**Created:** [June 15, 2003, 2:40am UTC](https://forum.highend3d.com/t/joint-and-ik-for-car-engine/44667 "2003-06-15T02:40:22Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![trthing](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/t/b3f665/32.png) [@trthing](https://forum.highend3d.com/u/trthing)
#### Post date: [June 15, 2003, 2:40am UTC](https://forum.highend3d.com/t/joint-and-ik-for-car-engine/44667/1 "2003-06-15T02:40:22Z")

</div>

Hiyall!  
Need some help to get the crankshaft-\>piston chain to work (as in a car engine).  
Looked around a lot but got no answers.  
Yeah, I guess it is feasible through SDK but this time I have to use joints/IK (have to export for real-time package that only accepts bones anim data).  
thnx in advance for your tips!

---

<div class="post-metadata">

### Author: ![joojaa](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/j/5daacb/32.png) [@joojaa](https://forum.highend3d.com/u/joojaa)
#### Post date: [June 16, 2003, 7:00am UTC](https://forum.highend3d.com/t/joint-and-ik-for-car-engine/44667/2 "2003-06-16T07:00:01Z")

</div>

Actualy this is easier to do with constraints altough to be honest even expressions arent out of the question (open up any book on this matter and you can get the equaion in human readable form straight)

---

<div class="post-metadata">

### Author: ![trthing](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/t/b3f665/32.png) [@trthing](https://forum.highend3d.com/u/trthing)
#### Post date: [June 16, 2003, 3:54pm UTC](https://forum.highend3d.com/t/joint-and-ik-for-car-engine/44667/3 "2003-06-16T15:54:53Z")

</div>

Joojaa,

Yes, I know I could put an equation to work for me on that (my engineering skills are still OK, I guess ![](http://64.32.63.100/forums/icons/wink.gif)).  
Let me carify the issue: I have to make it work using joints/IK and I do not know how (all I find are character rigging tutorials that do not address my subject properly). I’m learning to use Maya’s IK system (got my 5.0 copy last friday).  
I would really appreciate if you (or somebody else) could give me some tips (or walk me through the proper solution) on this matter.

Thnx anyway for your reply!

---

<div class="post-metadata">

### Author: ![joojaa](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/j/5daacb/32.png) [@joojaa](https://forum.highend3d.com/u/joojaa)
#### Post date: [June 17, 2003, 4:47am UTC](https://forum.highend3d.com/t/joint-and-ik-for-car-engine/44667/4 "2003-06-17T04:47:40Z")

</div>

Why whats the benefit of having extra transforms in the chain… anyway you can use constraints to do it with bones too… I wouldnt id just put a new atribute that controlls the phase and middle mouse shift the damn thing if i needed controll.

umm ok so you want a ik (insane but here you go) feedback eh yes then just do the shaft in mid position. Theres going to be a slight problem with this. tough the shaft will cole up on the same side as it goes down (because there are unlimitted solutions for this and maya plots that 1)

so what you need is a expression that will figure if you are in the first part of the cycle or not and then flip the pole vector.

---

<div class="post-metadata">

### Author: ![trthing](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/t/b3f665/32.png) [@trthing](https://forum.highend3d.com/u/trthing)
#### Post date: [June 17, 2003, 1:31pm UTC](https://forum.highend3d.com/t/joint-and-ik-for-car-engine/44667/5 "2003-06-17T13:31:07Z")

</div>

There is no benefit: it is a limitation of the software I will use for real\_time as far as I understand.  
Yes, I saw that flipping problem coming but I have more basic doubts on how to set up the joints so they actually drive the piston up and down. Could you clarify your ideas to me, please?

thanks!

---

<div class="post-metadata">

### Author: ![joojaa](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/j/5daacb/32.png) [@joojaa](https://forum.highend3d.com/u/joojaa)
#### Post date: [June 18, 2003, 5:42am UTC](https://forum.highend3d.com/t/joint-and-ik-for-car-engine/44667/6 "2003-06-18T05:42:00Z")

</div>

you could bake the expression to rotations on a later date and simplify the curves before exporting…

---

<div class="post-metadata">

### Author: ![trthing](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/t/b3f665/32.png) [@trthing](https://forum.highend3d.com/u/trthing)
#### Post date: [June 27, 2003, 7:00pm UTC](https://forum.highend3d.com/t/joint-and-ik-for-car-engine/44667/7 "2003-06-27T19:00:00Z")

</div>

Thanks, Joojaa.

Sorry for the delay but I was tweaking the export options and I guess it has to be accomplished through a single chain of joints running from the crankshaft to the piston. Still kinda stuck here…
