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 » Scripters
Home Search
 

Re: Use lookVector to get a direction other than the front?

Previous Thread :: Next Thread 
amanda is not online. amanda
Joined: 21 Nov 2006
Total Posts: 5925
08 Jun 2015 06:16 PM
So I have a part at a random rotation, and I need to get the lookVector of the right side.

I don't normally deal with CFraming and positioning.

Any help is appreciated.
Report Abuse
rayk999 is not online. rayk999
Joined: 18 Feb 2011
Total Posts: 4705
08 Jun 2015 06:21 PM
CFrame:vectorToWorldSpace(Vector3.new(1, 0, 0))

Report Abuse
amanda is not online. amanda
Joined: 21 Nov 2006
Total Posts: 5925
08 Jun 2015 06:27 PM
Thanks. I suppose it's time I learned more about the rotation matrix, reading up on it.
Report Abuse
chillzmcgrills is not online. chillzmcgrills
Joined: 31 Aug 2010
Total Posts: 10430
08 Jun 2015 06:28 PM
http://www.roblox.com/Forum/ShowPost.aspx?PostID=164053903
Report Abuse
rayk999 is not online. rayk999
Joined: 18 Feb 2011
Total Posts: 4705
08 Jun 2015 06:30 PM
I would also think that you could rotate the CFrame by like 90 degrees but that is more work. And this makes you look smarterer
Report Abuse
MrNicNac is not online. MrNicNac
Joined: 29 Aug 2008
Total Posts: 26567
08 Jun 2015 06:39 PM
@amanda

http://wiki.roblox.com/index.php?title=User:MrNicNac/CFrame_Cheat_Sheet
Report Abuse
amanda is not online. amanda
Joined: 21 Nov 2006
Total Posts: 5925
08 Jun 2015 07:38 PM
Woop! I did what I was trying to do. I ended up not actually needing the rotational matrix in my code(or lookVectors at all), however if I did not go through the process of learning it, I would not of figured out my problem.

Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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