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: fromAxisAngle

Previous Thread :: Next Thread 
ninja900500 is not online. ninja900500
Joined: 27 Sep 2008
Total Posts: 2324
07 Aug 2016 02:28 PM
CFrame.fromAxisAngle(Vector3 v, number r)

from the wiki, you can only input the axis and the rotation.

how do you input a second vector that's getting rotated around the axis?
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
07 Aug 2016 02:38 PM
Use another. I mean, there's surely another way that I don't know about to get the correct vector to rotate on both axes, but it's easier to use and understand this way.
CFrame.fromAxisAngle(Blah) * CFrame.fromAxisAngle(Blah)


Report Abuse
ninja900500 is not online. ninja900500
Joined: 27 Sep 2008
Total Posts: 2324
07 Aug 2016 02:38 PM
i mean, how do you get the second vector thats getting rotated?
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
07 Aug 2016 02:39 PM
There is no second vector though? You're only rotating on one vector.


Report Abuse
ninja900500 is not online. ninja900500
Joined: 27 Sep 2008
Total Posts: 2324
07 Aug 2016 02:39 PM
oh thanks
Report Abuse
Lord_Narwhal is not online. Lord_Narwhal
Joined: 05 May 2012
Total Posts: 3242
07 Aug 2016 02:39 PM
if you want to rotate 2 vectors it's done like this

.fromAxisAngle(Vector3.new(1,0,1).unit,r


Formerly xXTheRobotXx, add 13,349 posts
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
07 Aug 2016 02:41 PM
But that's still only one vector. Again, you could do math to find out the vector between them I'm sure, but then your rotations might be askew depending on what you wanted.


Report Abuse
Lord_Narwhal is not online. Lord_Narwhal
Joined: 05 May 2012
Total Posts: 3242
07 Aug 2016 02:42 PM
oh my wording was wrong

if you want to rotate 2 axes at once it's what i said



Formerly xXTheRobotXx, add 13,349 posts
Report Abuse
ninja900500 is not online. ninja900500
Joined: 27 Sep 2008
Total Posts: 2324
07 Aug 2016 02:46 PM
let me re-clarify what im asking it was kinda misleading lol

i thought that when you use fromaxisangle there's an axle vector that stays still, then there's another vector that gets rotated AROUND that axle vector.

what i want to know is how do you input that vector (that gets rotated) and how do you get the after vector (After it gets rotated) because the constructor on the wiki doesn't have a place where you input that vector
Report Abuse
VoidFrost is not online. VoidFrost
Joined: 14 Oct 2011
Total Posts: 1188
07 Aug 2016 02:47 PM
what does fromaxisangle do
Report Abuse
ninja900500 is not online. ninja900500
Joined: 27 Sep 2008
Total Posts: 2324
07 Aug 2016 02:57 PM
b1
Report Abuse
SashimiRoll is not online. SashimiRoll
Joined: 24 Dec 2015
Total Posts: 72
07 Aug 2016 03:53 PM
The fromAxisAngle constructor only changes the rotation matrix. If you want a pure vector implementation check out this:

http://wiki.roblox.com/index.php?title=User:EgoMoose/Articles/Quaternions_and_slerping#Rodriguez_Rotation_formula:_Axis-angle_rotations
Report Abuse
ninja900500 is not online. ninja900500
Joined: 27 Sep 2008
Total Posts: 2324
07 Aug 2016 04:04 PM
THANK YOU.
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