Ball not rotating properly when above 90

I`m trying to make a ball that rotates using the players controls, but when the ball rotates past a certain point it stops or something.
Video of what happens: (sorry for low quality its either my recording software exporting low quality or my editing software, at least the orientation is just barely readable.)

External Media

Thanks for reading.

2 Likes

can u send a streamable version of the video? also a snippet of the code?

It is a streamable, i don’t know why it sent like that. Also the way to rotate the ball is just adding a bit to the x orientation when the player is holding forward, and substracting a bit when the player is holding backwards.

Fixed it myself.
What i did first to rotate it, i added a increment to the X orientation with Vector3
Example:

Workspace.Ball.Orientation+=Vector3.new(5,0,0)

Orientation has limits, but CFrame doesn’t
What i have now:

workspace.Ball.CFrame = workspace.Ball.CFrame *CFrame.Angles(math.rad(1),0,0)

This works perfectly! There are no weird non existent barriers now.

1 Like

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