Kasumo
|
  |
| Joined: 22 Mar 2013 |
| Total Posts: 2467 |
|
|
| 06 Jul 2016 02:52 PM |
| how do you get the lookVector of a camera ? |
|
|
| Report Abuse |
|
|
|
| 06 Jul 2016 02:52 PM |
local LV = workspace.CurrentCamera.CFrame.lookVector
|
|
|
| Report Abuse |
|
|
Skellobit
|
  |
| Joined: 13 Apr 2016 |
| Total Posts: 12758 |
|
|
| 06 Jul 2016 02:53 PM |
camera.CFrame.lookVector
Formerly ToxicDominator - add 17,509 posts | :(){:|:&};: |
|
|
| Report Abuse |
|
|
Skellobit
|
  |
| Joined: 13 Apr 2016 |
| Total Posts: 12758 |
|
|
| 06 Jul 2016 02:53 PM |
God dammit Jarod
Formerly ToxicDominator - add 17,509 posts | :(){:|:&};: |
|
|
| Report Abuse |
|
|
|
| 06 Jul 2016 02:54 PM |
I have a plugin that automatically brings up a new Chrome tab each time someone posts something here.
I'm joking, but that would be really messy.
|
|
|
| Report Abuse |
|
|
|
| 06 Jul 2016 02:56 PM |
@Jarod If you did that, all I can do is pray for your computer. It would roast itself to death eventually.
-=[ RAP: 345,710 || DurstAuric; the narb of ROBLOX ]=- |
|
|
| Report Abuse |
|
|
Kasumo
|
  |
| Joined: 22 Mar 2013 |
| Total Posts: 2467 |
|
|
| 06 Jul 2016 03:01 PM |
wait() cam = workspace.CurrentCamera cam.CameraType = "Scriptable" cam.FieldOfView = 50 cam.CameraSubject = workspace.Part1 cam.CFrame = CFrame.new(workspace.Part1.CFrame.lookVector)
i did this but the lookVector is going crazy :( |
|
|
| Report Abuse |
|
|
Kasumo
|
  |
| Joined: 22 Mar 2013 |
| Total Posts: 2467 |
|
| |
|
BanTech
|
  |
| Joined: 31 Dec 2015 |
| Total Posts: 886 |
|
|
| 06 Jul 2016 03:09 PM |
| What are you trying to do? |
|
|
| Report Abuse |
|
|
Kasumo
|
  |
| Joined: 22 Mar 2013 |
| Total Posts: 2467 |
|
|
| 06 Jul 2016 03:16 PM |
| So I have the position of the camera where I want it, but it's not facing the right direction. |
|
|
| Report Abuse |
|
|
BanTech
|
  |
| Joined: 31 Dec 2015 |
| Total Posts: 886 |
|
|
| 06 Jul 2016 03:19 PM |
Okay, well if you have an object that you want the camera to look at, (for example workspace.Part1) then you can do this:
cam.CFrame = CFrame.new(cam.CFrame.p, workspace.Part1.CFrame.p)
That will keep the camera in the same position, but this time it will look at workspace.Part1. |
|
|
| Report Abuse |
|
|
Kasumo
|
  |
| Joined: 22 Mar 2013 |
| Total Posts: 2467 |
|
|
| 06 Jul 2016 03:22 PM |
| if I want to be more specific how can i add in (x,y,z) ? |
|
|
| Report Abuse |
|
|
BanTech
|
  |
| Joined: 31 Dec 2015 |
| Total Posts: 886 |
|
|
| 06 Jul 2016 03:29 PM |
I think you mean like this:
cam.CFrame = CFrame.new(Vector3.new(x, y, z), workspace.Part1.CFrame.p)
So you can specify a position for the camera? |
|
|
| Report Abuse |
|
|
|
| 06 Jul 2016 03:37 PM |
| cam.CFrame = CFrame.new(cam.CFrame.p, cam.CFrame.p+workspace.Part1.CFrame.lookVector) |
|
|
| Report Abuse |
|
|