generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Could someone give an example of lookVector?

Previous Thread :: Next Thread 
redfart is not online. 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
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
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 is not online. redfart
Joined: 17 Oct 2008
Total Posts: 1021
05 Jun 2013 05:03 AM
Worked like a charm. Thanks a lot!
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image