Attachment Orientation/lookAt seems a bit off [RESOLVED]

How could I maintain the orientation on the Y-Axis of 0? As it’s 90, I’d like it to default at 0 but maintain its lookAt.

This is my current implementation.

This photo is more of a reference I’d like, but the lookAt is incorrect for reference.

Of course I’ve implemented a workaround for this, but requires more math calculation(s) hence it’s not 0.

You want the wheel to spin normally?

Correct, it spins perfectly with me dynamically setting the Y-Axis to 90 -/+ 60 varying on the SteerFloat, which I’d much rather have a magic number for it and it all comes down to the Y-Axis defaulting at 0.

So you got it to work kind of? The sentence just confused me. Sorry.

My apologies.

To summarize, I basically want to default the orientation to 0 on the Y-Axis as it’s 90 currently, and setting it to 0 causes an incorrect lookAt / looks the incorrect direction (as shown in the bottom photo)

So you want to find out how to put the Y-Axis to 0 with it not messing up?

That is correct.

:slight_smile: (this msg limit is going to kill me)

Is the spring there to make the tire bounce or something?

I have the springs there to handle the smoothness of the suspension and adjust the height from the wheels to the base it’s connected to.

I will try my best to find a solution. (I’m a bit new to the dev forum) If I find one I’ll tell you.

That would be amazing, thank you tons and welcome to the forums!

I’ve done a search myself and seeing solutions toward realigning the base, however unsure how that’d go about as I’d possibly have to reposition the base it’s connected to.

Could it be because you have the top part of the spring selected? I’m just asking these question to get better at helping with things.

The top part connected to the spring is the Attachment, which is the one I want defaulted. It could be possible the springs are off, unsure.

It could be. Double check. It’s always good to double check.

I mean, the springs aren’t orientable… it all comes down to the attachment(s).

Alright. I’ll look more to see if I can solve it.

For better reference, upon the initial placement, it should be facing the Right, that seems to be the issue here. However when I manually correct it, it automatically goes to 90.

Edit: Reorienting the base seems to do it smh… will just have to rerig it.

Sorry, just trying to understand a bit more.
You manually set all the hinge Attachments when you place them.
If they aren’t aligned correctly all you need to do is select the Attachment with the Rotate tool.

Attachments for HingeConstraints must align with each other to keep the axis correct.
You can’t use just 1 HingeConstraint for the rotation and steering though.

A CylindricalConstraint can be used for the Prismatic length alignment as well as spin either the rotation or the steering of the bottom end.