|
| 18 Feb 2016 03:55 AM |
I would like to request a ModuleScript that is used by the RootCamera ModuleScript to provide default values (found on line 52, to line 59). By providing this module, it would allow for the RootCamera to be further modified without needing to replace the entire RootCamera. My use case for this is to slow down the camera's sensitivity after offsetting the camera to give the player the same amount of control from a farther distance.
I've included an example below. CameraDefaults (inside CameraScript.RootCamera): local CameraDefaults = {}
CameraDefaults.MinY = math.rad(-80) CameraDefaults.MaxY = math.rad(80) CameraDefaults.TouchSensitivity = Vector2.new(math.pi*2.25, math.pi*2) CameraDefaults.MouseSensitivity = Vector2.new(math.pi*4, math.pi*1.9) CameraDefaults.SeatOffset = Vector3.new(0,5,0) CameraDefaults.HeadOffset = Vector3.new(0, 1.5, 0)
return CameraDefaults
|
|
|
| Report Abuse |
|
|
Graidlyz
|
  |
| Joined: 25 Dec 2011 |
| Total Posts: 13357 |
|
|
| 18 Feb 2016 04:31 AM |
"RootCamera"
never heard of that, you mean CurrentCamera?
|
|
|
| Report Abuse |
|
|
|
| 18 Feb 2016 05:05 AM |
| The RootCamera is a ModuleScript that is a part of a LocalScript named CameraScript, it is automatically placed into the PlayerScripts (which is inside of each player) to control the camera. You can read more about it here: http://wiki.roblox.com/index.php?title=CameraScript |
|
|
| Report Abuse |
|
|
Graidlyz
|
  |
| Joined: 25 Dec 2011 |
| Total Posts: 13357 |
|
|
| 18 Feb 2016 05:27 AM |
Ooh, that's a new feature right?
I'm pretty sure it didn't exist like 2 years ago
|
|
|
| Report Abuse |
|
|
|
| 18 Feb 2016 07:33 AM |
support I could use very less code lines with this feature here: http://www.roblox.com/games/273882451/Tornado-developing :3 |
|
|
| Report Abuse |
|
|
|
| 18 Feb 2016 05:37 PM |
| The earliest occurrence that I could find for the CameraScript was the first edit of it's documentation on February 25, 2015. I can not verify when this feature was added. |
|
|
| Report Abuse |
|
|