|
| 19 Feb 2013 05:01 PM |
how would i make the camera pivot around a point based on where its pointing? like, the camera placement is on a line from mouse.hit, through a part, and 10 studs after the part? |
|
|
| Report Abuse |
|
|
|
| 19 Feb 2013 05:16 PM |
| refreshing to top of forum help so others can help... |
|
|
| Report Abuse |
|
|
C0D3Y
|
  |
| Joined: 24 Jul 2010 |
| Total Posts: 1692 |
|
|
| 19 Feb 2013 05:18 PM |
| Could you be more specific? This might help, but I may have misinterpretted: http://wiki.roblox.com/index.php/Camera_manipulation Or you may just want to set the CameraType. Once again, not exactly sure what you mean... |
|
|
| Report Abuse |
|
|
|
| 19 Feb 2013 05:43 PM |
| okay so ill be more specific. i want the player's camera to be placed on a line that starts from where the player's mouse hits, and goes through a part's position. the cameras focus (the direction of where its looking) would be where the mouse hits. its simple if you place the camera on the part and looking where the mouse points, but i need it to be placed a fixed amount of studs away from the part (while still being on the line from the mouse's hit to the part). i believe it would be done by using rays to find out the coordinateframe and focus. |
|
|
| Report Abuse |
|
|
C0D3Y
|
  |
| Joined: 24 Jul 2010 |
| Total Posts: 1692 |
|
|
| 19 Feb 2013 06:00 PM |
| If I understand you correctly, I would set the CFrame to the Mouse's Hit, and focus on the Part. |
|
|
| Report Abuse |
|
|
|
| 19 Feb 2013 06:25 PM |
| i was thinking of it wrong, my apologies, think of it like a 3rd person type of view, like resident evil. the camera will always stay behind the player, but will be pointing in the direction of where the mouse hits. but instead of the camera standing beside the player, it will be above and somewhat behind. |
|
|
| Report Abuse |
|
|