How do I make an object's axes align only on the XY axes with AlignOrientation, while still being able to rotate on the Y with AngularVelocity?

Hello, I am currently making a hover vehicle that tilts towards the direction the vehicle is moving using AlignOrientation. Right now I am facing an issue where I am unable to make it rotate freely on the Y axis, because AlignOrientation acts on all axes. I have tried rotating the attachment so that the primary axis is (1, 0, 0) and the secondary axis is (0, 0, 1) but this just make the vehicle rotate to align with the attachment while still restricting the Y axis. How can I make AlignOrientation only act on the X and Z axis, while allowing AngularVelocity to act on the Y axis?

Well there is a property called “AllignTypes” that could help your problem, though I’m unsure whether one of them would help you.

I have tried using AlignType by having two AlignOrientation constraints set to PrimaryAxisParallel and then two attachments rotated to have their primary axes be (1, 0, 0) and (0, 0, 1), however the AlignOrientation constraints then seemed to not work at all.

Figured it out, was using the .Stepped parameters wrong, could have simply just multiplied the AlignOrientation CFrame by a rate instead of having to use AngularVelocity.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.