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: Math.Rad to unit

Previous Thread :: Next Thread 
LiamScerri is not online. LiamScerri
Joined: 10 Oct 2010
Total Posts: 560
08 Mar 2013 10:07 AM
How would I convert a math.rad() into the vector3 version of .unit?
Report Abuse
LiamScerri is not online. LiamScerri
Joined: 10 Oct 2010
Total Posts: 560
08 Mar 2013 10:15 AM
Nvm, it would be too buggy.
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
08 Mar 2013 10:38 AM
What are you asking, to begin with?
Are you asking how to derive a unit vector given the angles from each axis?
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
08 Mar 2013 10:44 AM
Get out.You spammed mine i spammed yours.
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
08 Mar 2013 10:48 AM
By the way, your lore is a bit wrong.
Guthix does not have an army. Zaros did, and still does, though.
Report Abuse
LiamScerri is not online. LiamScerri
Joined: 10 Oct 2010
Total Posts: 560
08 Mar 2013 10:56 AM
Ah, but Guthix had his people which learnt the ways of combat.
Report Abuse
LiamScerri is not online. LiamScerri
Joined: 10 Oct 2010
Total Posts: 560
08 Mar 2013 10:58 AM
Fixed ;D
Report Abuse
RoflBread is not online. RoflBread
Joined: 18 Jun 2009
Total Posts: 3803
08 Mar 2013 11:53 AM
RIP Runescape, aha
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
08 Mar 2013 12:37 PM
I suppose Fiara and Death know combat, and Cres, one of Guthix's last guardians, was made to create creatures for combat. Other than them, Guthix has no followers that know combat. The druids are potion makers. The Faeries are peaceful; only Chaelder even resembles that of a combatant, but she does not like to fight; she just tells you to go fight things.

The dwarves are known for their artisan skills, not for combat.

Oh, and Guthix never wanted anybody to worship him as a god to begin with.

Now, back on topic, there is a way to get a unit vector from angles.
Report Abuse
RoflBread is not online. RoflBread
Joined: 18 Jun 2009
Total Posts: 3803
08 Mar 2013 12:51 PM
On a 2D plane it would be Vector = (cos(angle, sin(angle)), right? Don't know about working out the Z value though; it'll be some trig function I do not know, wah :(
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
08 Mar 2013 01:10 PM
Yes, on a 2D plane given a single angle (from the x-axis in the first quadrant), you could use

< cos(θ), sin(θ) >

However, if you're given angles from each corresponding axis, you can do this:

< cos(α), cos(β), cos(γ) >

Given:
α - the angle from the x-axis
β - the angle from the y-axis
γ - the angle from the z-axis

This also means that EVERY unit vector will have these components. By simply taking each component of a unit vector, we can tell what angle any given vector is from each axis:

unit vector: < A, B, C >
α = arccos(A)
β = arccos(B)
γ = arccos(C)
Report Abuse
RoflBread is not online. RoflBread
Joined: 18 Jun 2009
Total Posts: 3803
08 Mar 2013 02:10 PM
Ohhhh, wicked. You da man.
Report Abuse
LiamScerri is not online. LiamScerri
Joined: 10 Oct 2010
Total Posts: 560
08 Mar 2013 03:44 PM
I hate trigonometry.
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