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
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: How would I Reverse the Camera's Direction?

Previous Thread :: Next Thread 
bigmike150 is not online. bigmike150
Joined: 25 Apr 2010
Total Posts: 94
15 May 2012 07:15 PM
I dont know much about the Camera Object, because I don't usually use it, so I'm just going to ask for a script that would, and I will try to keep it in mind.
Nobody tought me how to script, I learned from reading other peoples.
Its the best way...
Report Abuse
bigmike150 is not online. bigmike150
Joined: 25 Apr 2010
Total Posts: 94
15 May 2012 07:18 PM
Persay, you were facing the screen toward a wall.
The script will make the Camera face Away from the wall. I need it for a special effect in my Game Bloody Mary...
Report Abuse
bigmike150 is not online. bigmike150
Joined: 25 Apr 2010
Total Posts: 94
17 May 2012 12:08 PM
Nobody ever knows anything about Camera...
Report Abuse
su8 is not online. su8
Joined: 06 Mar 2009
Total Posts: 6334
17 May 2012 12:32 PM
It's not only about the camera k?

It's about math..

IN GENERAL

So lets see if you can access CoordinateFrame and Focus you can make a direction of it with Focus.p-CoordinateFrame.p

Then just invert the vector so it would be -( Focus.p-CoordinateFrame.p) or more simple (CoordinateFrame.p - Focus.p) ..

Then just set the new focus to CoordinateFrame.p + Direction * magnitude
Report Abuse
agent767 is not online. agent767
Joined: 03 Nov 2008
Total Posts: 4181
17 May 2012 12:36 PM
cam = Camera
cam.CoordinateFrame = CFrame.new(cam.Focus.p - (cam.CoordinateFrame.p - cam.Focus.p))
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