redfart
|
  |
| Joined: 17 Oct 2008 |
| Total Posts: 1021 |
|
|
| 04 Jun 2013 04:52 PM |
I have absolutely no clue how to use it. I'm trying to point the camera from the CoordinateFrame position, while in Scriptable mode, and focus won't work. I looked on the wiki and it said I can use lookVector. How do I do this?
Also, on a side note, how would I, while in Scriptable mode, point a camera down from a coordinateframe position. This is what I have, but it won't work.
Camera.CameraType = "Scriptable" Camera.CoordinateFrame=CFrame.new(one.Position) Camera.Focus=CFrame.new(two.Position) |
|
|
| Report Abuse |
|
|
|
| 04 Jun 2013 05:54 PM |
A lookVector is a vector that has a magnitude of 1. Since its magnitude is 1, it only specifies direction, meaning you can multiply your lookVector by any number and receive a vector that is in the same direction as the lookVector, but with the specified length.
And I think you may have to set the focus of the CFrame with the CoordinateFrame property.
CoordinateFrame=CFrame.new(one.Position, two.Position) |
|
|
| Report Abuse |
|
|
redfart
|
  |
| Joined: 17 Oct 2008 |
| Total Posts: 1021 |
|
|
| 05 Jun 2013 05:03 AM |
| Worked like a charm. Thanks a lot! |
|
|
| Report Abuse |
|
|