|
| 10 Oct 2013 03:43 PM |
| I set the currentcamera to scriptable, then proceeded to set the coordinateframe to a specific brick and the focus to another brick. the camera's coordinateframe did set to the brick i set it to but it didnt focus to the other brick. Why? |
|
|
| Report Abuse |
|
|
|
| 10 Oct 2013 03:48 PM |
| Your the one with the script here. You tell me |
|
|
| Report Abuse |
|
|
|
| 10 Oct 2013 03:49 PM |
focus and coordinateframe edit the same thing
To make it look at brick2 from brick1 do:
brick1 = brick2 = game.Workspace.CurrentCamera.CoordinateFrame = CFrame.new(brick1.Position.brick2.Position) |
|
|
| Report Abuse |
|
|
Bebee2
|
  |
| Joined: 17 May 2009 |
| Total Posts: 3985 |
|
|
| 10 Oct 2013 03:53 PM |
| I ran some tests. Camera that is set to Scriptable doesn't change in focus. |
|
|
| Report Abuse |
|
|
|
| 10 Oct 2013 04:20 PM |
Jetta, did you mean this? game.Workspace.CurrentCamera.CoordinateFrame = CFrame.new(game.Workspace.Gun1.CFrame - game.Workspace.Gun2.CFrame)
16:19:57.772 - game.Workspace.CurrentCamera.CoordinateFrame = CFrame.new(g:1: bad argument #2 to '?' (Vector3 expected, got userdata) 16:19:57.775 - Script 'game.Workspace.CurrentCamera.CoordinateFrame = CFrame.new(g', Line 1 16:19:57.777 - stack end |
|
|
| Report Abuse |
|
|
Bebee2
|
  |
| Joined: 17 May 2009 |
| Total Posts: 3985 |
|
|
| 10 Oct 2013 04:22 PM |
game.Workspace.CurrentCamera.CoordinateFrame = CFrame.new(game.Workspace.Gun1.CFrame.p - game.Workspace.Gun2.CFrame.p)
|
|
|
| Report Abuse |
|
|
|
| 10 Oct 2013 04:23 PM |
| yeah that did something. it made my camera go waaaaaaay away from both of those parts. not even close o.o |
|
|
| Report Abuse |
|
|
|
| 10 Oct 2013 04:24 PM |
| I'm trying to create a seated turret where the player sits at a control panel. the camera then switches from the player to the turret camera. thats all. :/ |
|
|
| Report Abuse |
|
|
|
| 10 Oct 2013 04:29 PM |
I tried
game.Workspace.CurrentCamera.CoordinateFrame = CFrame.new(game.Workspace.Gun1.CFrame.p)
I does set the camera cframe, but the camera always points north. :/ It doesn't even point in the direction the brick is facing. |
|
|
| Report Abuse |
|
|
|
| 10 Oct 2013 06:11 PM |
| what about CFrame.Angles? Is there any way to use that to set the camera to the lookvector of the brick? |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
08C
|
  |
| Joined: 26 Jan 2013 |
| Total Posts: 847 |
|
| |
|