Dwarlon
|
  |
| Joined: 18 Jul 2013 |
| Total Posts: 4604 |
|
|
| 10 Apr 2014 06:42 PM |
I am making an animation, and I have as follows (I'm testing rotations)
p = script.Parent while true do p.CFrame = CFrame.new(-21.02, 4.27, -7.11)* CFrame.Angles(90,0,0) wait(.5) p.CFrame = CFrame.new(-21.02, 4.27, -7.11)* CFrame.Angles(0,0,0) wait(.5) end
I have tried SO many angles on the 3rd line, but they all rotated in a weird way. They don't rotate 90, they rotate 45, and 45 rotates at some undefined angle... |
|
|
| Report Abuse |
|
|
| |
|
TomsGames
|
  |
| Joined: 11 Oct 2013 |
| Total Posts: 1615 |
|
|
| 10 Apr 2014 06:44 PM |
Hey there!
The issue your having is the CFrame.Angles() part.
Whatever number you put in, it uses that number in RADIANS. Noooo!
We don't want that, so to fix that use this:
p.CFrame = CFrame.new(-21.02, 4.27, -7.11)* CFrame.Angles(math.rad(90),0,0)
That turns it to degrees, which is what you want.
Hope this helps! |
|
|
| Report Abuse |
|
|
| |
|
| |
|
Dwarlon
|
  |
| Joined: 18 Jul 2013 |
| Total Posts: 4604 |
|
| |
|
Ariophy
|
  |
| Joined: 08 Mar 2014 |
| Total Posts: 81 |
|
| |
|