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: Rotating vector on math.pu/2 in 3d

Previous Thread :: Next Thread 
RackHe00 is not online. RackHe00
Joined: 15 Jul 2012
Total Posts: 303
29 Jul 2012 10:50 AM
Title says it all. How would i do this stuff in roblox? Googling the problem brought me matrixes, which is not a good solution because:

1)I dont know if how to get last 9 numbers of CFrame table, which are rotation matrix
2)Its rather complicated

Anyone have ideas?
Report Abuse
Mathfreak231 is not online. Mathfreak231
Joined: 21 Jun 2010
Total Posts: 5311
29 Jul 2012 10:51 AM
wut is math.pu

~~This sig is false~
Report Abuse
thecaptain97 is not online. thecaptain97
Joined: 17 Jun 2010
Total Posts: 4987
29 Jul 2012 10:52 AM
math.pi ?


Report Abuse
DrAgonmoray is not online. DrAgonmoray
Joined: 29 Jul 2008
Total Posts: 17428
29 Jul 2012 10:53 AM
CFrame.new(VECTOR_HERE) * CFrame.Angles(0, math.pi/2, 0)

that?
Report Abuse
RackHe00 is not online. RackHe00
Joined: 15 Jul 2012
Total Posts: 303
29 Jul 2012 11:17 AM
math.pi, not math.pu, sorry.

@DrAgon

This wont work. If you had (1, 0, 0), the result wont be (0, 0, 1), it will be (0, 0, 0)
Report Abuse
rayoma is not online. rayoma
Joined: 13 Nov 2009
Total Posts: 1911
29 Jul 2012 11:19 AM
Take doc's script and flip them. Remember that when multiplying matrices the second one is always offset by the first one.
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