|
| 02 Feb 2017 08:16 PM |
| I'm trying to attach the camera to a part, but not allow the user to move the camera around... right now I'm using attach and you can still go upwards and down with the camera. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 02 Feb 2017 09:06 PM |
| guess there's nothing... gg |
|
|
| Report Abuse |
|
|
Eventive
|
  |
| Joined: 28 Jul 2011 |
| Total Posts: 9827 |
|
|
| 02 Feb 2017 09:08 PM |
Change CaemraType to Scriptable, you'd have to do the rest.
I can;t help any further, I am not good with Cameras.
ATR'er since 2013. |
|
|
| Report Abuse |
|
|
|
| 02 Feb 2017 09:12 PM |
local cam = workspace.CurrentCamera local plr = game.Players.LocalPlayer
cam.CameraType = Enum.CameraType.Scriptable cam.CameraSubject = workspace.CameraPosition cam.CoordinateFrame = CFrame.new(workspace.CameraPosition.CFrame.lookVector)
Trying to get it to the part's lookvector and its really awkward... |
|
|
| Report Abuse |
|
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 02 Feb 2017 09:25 PM |
Video demonstration: https://youtu.be/Ev5dqtOJNj4
local player = game.Players.LocalPlayer local cam = workspace.CurrentCamera cam.CameraType = Enum.CameraType.Scriptable local rs = game:GetService("RunService") local offset = Vector3.new(0,15,10) local trackpart = workspace:WaitForChild("TrackPart")
rs.RenderStepped:connect(function() cam.CFrame = CFrame.new(trackpart.Position+offset,trackpart.Position) end)
|
|
|
| Report Abuse |
|
|
|
| 02 Feb 2017 09:32 PM |
| Do you mean like this? - https://www.roblox.com/games/617497533/Arc-of-planets |
|
|
| Report Abuse |
|
|
|
| 02 Feb 2017 09:51 PM |
| I want a stable camera, it stays in one spot looking one direction and that arc of planets, you can look up and down... and @Soybeen 0 help and 0 for what I'm trying to do. |
|
|
| Report Abuse |
|
|
|
| 02 Feb 2017 09:57 PM |
I figured Soybeen had it.
You are asking, for a camera to point directly at a part, and not be moveable? Then Soybeen's demonstration should be spot-on. |
|
|
| Report Abuse |
|
|
|
| 02 Feb 2017 09:58 PM |
| ^ Trying to use a look vector to make it well look where the part it... and i've already done what soybeen has but a bit more and well differently... :C |
|
|
| Report Abuse |
|
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 03 Feb 2017 01:09 AM |
0 help? If you want the camera stationary then simply adjust the first argument and keep the 2nd hnnng
cam.CFrame = CFrame.new( Vector3.new(0,0,0), -- the position you want your camera to stay in SomePart.Position -- the position you want your camera to look at )
|
|
|
| Report Abuse |
|
|
Soybeen
|
  |
| Joined: 17 Feb 2010 |
| Total Posts: 21462 |
|
|
| 03 Feb 2017 01:10 AM |
If you want to be able to look up and down just fix the position of the camera and use the delta of the mouse in lockfirstperson, but only adjust the Z rotational component. and keep the x and y fixed as well .
|
|
|
| Report Abuse |
|
|
|
| 03 Feb 2017 02:03 PM |
| I DON'T want to be able to look up and down, and as I have stated like twice I want to use look vector. :C |
|
|
| Report Abuse |
|
|