|
| 03 Aug 2013 06:49 AM |
I want to have a character be rotated to the same angle as a brick, but only along the Y axis. This is for moving a character, so they are facing the same direction as the brick but aren't leading forward/backwards or side to side. (Whereas the brick is)
The problem is, if I go;
yrot = Vector3.new(part:toEulerAnglesXYZ()).y torso.CFrame = CFrame.new(part.Position) * CFrame.Angles(0,yrot,0)
It works for 180 degrees of rotation, but otherwise turns you a random direction
Any help would be appreciated |
|
|
| Report Abuse |
|
Epic1230
|
  |
| Joined: 07 Dec 2011 |
| Total Posts: 289 |
|
| |
|
| 03 Aug 2013 06:55 AM |
| Pretty sure you don't understand/didn't read all of my question |
|
|
| Report Abuse |
|