MattJon
|
  |
| Joined: 28 Apr 2009 |
| Total Posts: 660 |
|
|
| 31 May 2015 10:36 PM |
| I need to follow a block (moving camera) and also lock the camera at a certain angle. How would I go about doing this? 'Follow' camera type allows me to track the block, but I can't figure out how to lock the camera angle... Theories, thoughts, solutions, etc? |
|
|
| Report Abuse |
|
|
mattmob
|
  |
| Joined: 18 Dec 2012 |
| Total Posts: 21 |
|
|
| 31 May 2015 10:40 PM |
here this dude does grate tutorials https://www.youtube.com/watch?v=uEWNEgf78KA |
|
|
| Report Abuse |
|
|
Tokimonu
|
  |
| Joined: 18 Sep 2009 |
| Total Posts: 643 |
|
|
| 31 May 2015 10:43 PM |
That video doesn't really have everything that you need in it (i've watched it before) and you would probably be interested at looking at the properties of a camera and changing them from there.
http://wiki.roblox.com/index.php?title=API:Class/Camera
r̙̠̞̮̟͕̠e̙̖̱̞͍͎̺a̟̞͖͚͉̮lí̘̖̻t҉̜̬̥̼̝̳y̯̝ ̛͍̦͎͉̙iş̪͉̜͓̞ ̺̲͈̪͍̟͜an̙̤ ̴͈ͅi̘͕̗͈̖̹l̹l̥̻̀u̜͈͍s͏̣͖͍̺i̥̪̟ơṋ̼͇ ͕̙̳̝a͇͍͍͝n̤̪d̛͓͓̫ ͈̝̕t̹̝̦h̰͎̺̘͎͞e̢̤̭͈̲ ̦̹̠̰ụ̶̟͚͓̣n͔̦͕̳i͏̪̞ve҉̤̮͓͎̺r҉̗̫̬s̻̹͉̟ȩ̖̻ i͇̯̦̤̝͓͘ͅs̛̫̻͍̦̝̠̪ ̸̬͚a̷̻͈̫̦̦ ̬͙̫̺͉h̬̩̲̻̳̱o̙̺̥̝̪̭͇l͘o̤͔̜̹̭g̻͖̟̳̹̱ṛ̨͓̜͇̦a͏͕̞̞m͈̦̱̣̫̣ |
|
|
| Report Abuse |
|
|
MattJon
|
  |
| Joined: 28 Apr 2009 |
| Total Posts: 660 |
|
|
| 31 May 2015 10:50 PM |
| Thanks for the replies, I've looked at the wiki, but there's so many things to try, and I can't fathom trying them all. Does anyone know of a way to have a camera fixed at a specific angle (i.e. the player cannot shift the angle) and still following a block? |
|
|
| Report Abuse |
|
|
Tokimonu
|
  |
| Joined: 18 Sep 2009 |
| Total Posts: 643 |
|
|
| 31 May 2015 10:52 PM |
So, for starters, if you change the CameraType to Scriptable, then the player can't move their camera (i think, i haven't experimented with cameras in forever). Also, you would want to do CurrentCamera.CoordinateFrame, and change the cframe value accordingly.
But, with tilting the camera and making it roll, I could only assume one would use :GetRoll().
r̙̠̞̮̟͕̠e̙̖̱̞͍͎̺a̟̞͖͚͉̮lí̘̖̻t҉̜̬̥̼̝̳y̯̝ ̛͍̦͎͉̙iş̪͉̜͓̞ ̺̲͈̪͍̟͜an̙̤ ̴͈ͅi̘͕̗͈̖̹l̹l̥̻̀u̜͈͍s͏̣͖͍̺i̥̪̟ơṋ̼͇ ͕̙̳̝a͇͍͍͝n̤̪d̛͓͓̫ ͈̝̕t̹̝̦h̰͎̺̘͎͞e̢̤̭͈̲ ̦̹̠̰ụ̶̟͚͓̣n͔̦͕̳i͏̪̞ve҉̤̮͓͎̺r҉̗̫̬s̻̹͉̟ȩ̖̻ i͇̯̦̤̝͓͘ͅs̛̫̻͍̦̝̠̪ ̸̬͚a̷̻͈̫̦̦ ̬͙̫̺͉h̬̩̲̻̳̱o̙̺̥̝̪̭͇l͘o̤͔̜̹̭g̻͖̟̳̹̱ṛ̨͓̜͇̦a͏͕̞̞m͈̦̱̣̫̣ |
|
|
| Report Abuse |
|
|
iiEssence
|
  |
| Joined: 18 Jun 2014 |
| Total Posts: 3467 |
|
|
| 31 May 2015 10:56 PM |
CFrame = Pos * Angle * Offset
So you just gotta keep the angle and offset the same and use RenderStepped to change the position to the block |
|
|
| Report Abuse |
|
|