Hello, I was wondering if there was a way to use AlignOrientation to have the exact same function as LookAt()? If so, how do I do this? Thank you!
Well, The way i’ve done this before is by binding the part that is being orientated using AlignOrientation, to another part/Attachment that updates it orientation using LookAt(). This way, You can use LookAt() to set a orientation to meet, and the alignment consraint will fill that in.
Thank you for the detailed diagram and the deep answer, I really appreciate it. However, I need to use AlignOrientation() because it’s faster than LookAt(). Do you know if there is any way for me to use AlignOrientation() to achieve this? Thank you.
Well if you could please elaborate, what you need to use alignOrientation for and why is it faster than LookAt()?
When you use LookAt() there is a delay of around 0.5 seconds between the position it’s meant to look at. Basically there is some sort of tweening animation. I need to use something faster, with no gaps, just straight looking towards. That’s why I think my only answer is then AlignOrientation() although I don’t know if it’ll work or if I can use it well. Thanks.
can you show a bit of your script? I still dont see why AlignOrientation would help
I don’t really have any scripts. I am just playing around with AlignOrientation() to see if its facing property is faster than LookAt(), which would be very beneficial for me. If you know if it’s possible please let me know. Thanks for all the help so far.
Well you can set the properties of AlignOrientations to make it very responsive, with things like MaxTorque and Responsiveness properties, but LookAt() is incredibly fast because all it does is update the CFrame of a part. And again, I dont really know your goal, but to Get The fastest Movement out of AlignOrientation you need to enable RigidityEnabled (this allows it to solve as fast as possible)
Okay thank you. I will play around with the properties on Studio using the advice you gave me. Then I might update this if it gets more posts/responses.