Jump to content
Oovee® Games
Sign in to follow this  
blackcall2

PROBLEM with Springs using AutomaticIK

Recommended Posts

Hi guys, first of all I want to thank "Vengeful Maniac" for example that shared the other day to the subject "[How to] Create Shocks and Springs using AutomaticIK" since without this it could not have been possible ... well it turns out that some Days I decided to learn and how to apply this to my vehicles .. since I do not want to see more that effect of a "spring" shaped curve lol ..

 

So I'm happy to tell you that I have been able to solve the problem .. now it works well .

 

8GtcgkG.jpg

 

As you can see, the curve effect has disappeared, which I am very happy about.

 

But...

 

I have noticed that when I go at high speed with the vehicle, the shock absorbers seem to move from their place ..

 

 

usjy80W.jpg

 

If someone can help me I would appreciate it very much....

 

This is the code of my bonnes

 

<AutomaticIK>
        <IKBone ModelFrame="BoneT1" ParentFrame="BoneCenter">
            <IKJoint Type="Hinge" AxisLocal="(1;0;0)" />
            <IKBone
                ModelFrame="Bone1"
                AttachToFrame="AxleBone1"
                AttachOffset="(0; 0; 0)"
            >
                <IKJoint Type="Slider" AxisLocal="(0;1;0)" />
            </IKBone>
        </IKBone>
        <IKBone ModelFrame="BoneT2" ParentFrame="BoneCenter">
            <IKJoint Type="Hinge" AxisLocal="(1;0;0)" />
            <IKBone
                ModelFrame="Bone2"
                AttachToFrame="AxleBone2"
                AttachOffset="(0; 0; 0)"
            >
                <IKJoint Type="Slider" AxisLocal="(0;1;0)" />
            </IKBone>
        </IKBone>
        <IKBone ModelFrame="BoneT3" ParentFrame="BoneCenter">
            <IKJoint Type="Hinge" AxisLocal="(1;0;0)" />
            <IKBone
                ModelFrame="Bone3"
                AttachToFrame="AxleBone1"
                AttachOffset="(0; 0; 0)"
            >
                <IKJoint Type="Slider" AxisLocal="(0;1;0)" />
            </IKBone>
        </IKBone>
        <IKBone ModelFrame="BoneT4" ParentFrame="BoneCenter">
            <IKJoint Type="Hinge" AxisLocal="(1;0;0)" />
            <IKBone
                ModelFrame="Bone4"
                AttachToFrame="AxleBone2"
                AttachOffset="(0; 0; 0)"
            >
                <IKJoint Type="Slider" AxisLocal="(0;1;0)" />
            </IKBone>
        </IKBone>
    </AutomaticIK>
Edited by MarijnS95
Code block

Share this post


Link to post
Share on other sites

its a common thing Tatto,Bregel and I have been testing methods to avoid this (doung a truck like Bregel Datsun works Well)

Share this post


Link to post
Share on other sites

The bottom of the springs/shocks will always move, no helping that, but the whole spring shouldn't move back like that, I had the same problem, and it was a problem with my hierarchy in 3ds max.

Zqsk9ca.png

 

If everything is not like that exactly in 3ds max, you will have problems, and here is the code once again in case you don't have it

	<AutomaticIK>
		<IKBone ModelFrame="BoneT1" ParentFrame="BoneCrawler">
			<IKJoint Type="Hinge" AxisLocal="(1;0;0)" />
			<IKBone
				ModelFrame="Bone1"
				AttachToFrame="AxleBone1"
				AttachOffset="(0; 0; 0)"
			>
				<IKJoint Type="Slider" AxisLocal="(0;1;0)" />
			</IKBone>
		</IKBone>
		<IKBone ModelFrame="BoneT2" ParentFrame="BoneCrawler">
			<IKJoint Type="Hinge" AxisLocal="(1;0;0)" />
			<IKBone
				ModelFrame="Bone2"
				AttachToFrame="AxleBone2"
				AttachOffset="(0; 0; 0)"
			>
				<IKJoint Type="Slider" AxisLocal="(0;1;0)" />
			</IKBone>
		</IKBone>
		<IKBone ModelFrame="BoneT3" ParentFrame="BoneCrawler">
			<IKJoint Type="Hinge" AxisLocal="(1;0;0)" />
			<IKBone
				ModelFrame="Bone3"
				AttachToFrame="AxleBone1"
				AttachOffset="(0; 0; 0)"
			>
				<IKJoint Type="Slider" AxisLocal="(0;1;0)" />
			</IKBone>
		</IKBone>
		<IKBone ModelFrame="BoneT4" ParentFrame="BoneCrawler">
			<IKJoint Type="Hinge" AxisLocal="(1;0;0)" />
			<IKBone
				ModelFrame="Bone4"
				AttachToFrame="AxleBone2"
				AttachOffset="(0; 0; 0)"
			>
				<IKJoint Type="Slider" AxisLocal="(0;1;0)" />
			</IKBone>
		</IKBone>
	</AutomaticIK>

Share this post


Link to post
Share on other sites

Sorry for this new question, but how can I go to the hierarchy options?

 

 

-I will try with the hierarchies, and I will tell you what happens

Edited by blackcall2

Share this post


Link to post
Share on other sites

MANIAC! Thanks, it seems to work, the problem seems to be the hierarchy, now it is working well .. thank you very much .. and of course thanks to all the guys above for trying to help me too .. thank you very much.

Edited by blackcall2

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...