Hello, fellow developers. Today I have a helicopter (followed tutorial by HowToRoblox) and found that when it hits something and turns, it doesn’t go back to it’s original orientation. For example, if it hits a wall and points straight down to the ground, it won’t go back to as it was and basically makes it unusable. How can I fix this? Any help is greatly appreciated.
It is probably fixable with AlignOrientation. Using AlignOrientation you can probably also add some more realistic movement to the helicopter, like pointing down when moving forward and up when moving backwards.
After reading the documentation I have created an AlignOrientation paired with an attachment and set it to the OneAttachment mode. After testing it and realizing it needs to be unanchored, it works perfectly. However, I am wondering how the axis proportions work, because they seem completely out of line with the regular orientation proportions. How can I convert regular orientation proportions to the axis proportions? Also, what’s up with the SecondaryAxis property?
The SecondaryAxis allows you to change the Y axis of the part. I honestly don’t see any use of it but it exists for a reason. Adjusting the axis of the AlignOrientation is easiest to do by changing the CFrame of it.
I hate AlignOrientation and liked the old BodyGyro better but here is a page that can probably guide you further.