Crakkitty
|
  |
| Joined: 25 Dec 2009 |
| Total Posts: 17408 |
|
|
| 09 Jan 2015 11:37 PM |
Hi guys, I'm trying to force my camera to stay in a certain spot/direction. I'd use the Attach function of CameraType, but because of the CameraManipulation I wish to perform upon the Camera, I need it to be scriptable.
After reading the wiki, I still don't quite understand how I would force my camera to stick in a position and direction. Thanks.
~am a cat meow~ |
|
|
| Report Abuse |
|
|
ash877
|
  |
| Joined: 18 Feb 2008 |
| Total Posts: 5142 |
|
|
| 09 Jan 2015 11:39 PM |
You need to know the position and rotation matrix of the camera. If it's a specific direction go into studio and position the cam where you want it. type in cmd print(game.workspace.CurrentCamera.CoordinateFrame)
Copy the output and set the camera's type to scriptable and give it a new CFrame. |
|
|
| Report Abuse |
|
|
Crakkitty
|
  |
| Joined: 25 Dec 2009 |
| Total Posts: 17408 |
|
|
| 09 Jan 2015 11:44 PM |
Oh, awesome. Appreciate it!
~am a cat meow~ |
|
|
| Report Abuse |
|
|