#CFrame.lookAt() or math.deg stops counting up from 90º.

4 messages · Page 1 of 1 (latest)

pallid frost
#

Hello, I'm trying to make a hockey goalie face the puck using CFrame.lookAt() and then extracting that into Orientation alone so that I can use both position and orientation separately. After testing I found out that it works except for when the Y axis of the goalie's orientation hits 90º. When the Y axis 90º, it starts counting back down to 0º which makes the goalie face the other direction again. Did I miss something?

#

this is where this all occurs

#

specifically in this part

#

the direction doesn't play any part at the moment since I tried switching over back and fourth from both methods of making a CFrame look at an object