|
| 08 Mar 2013 10:07 AM |
| How would I convert a math.rad() into the vector3 version of .unit? |
|
|
| Report Abuse |
|
|
|
| 08 Mar 2013 10:15 AM |
| Nvm, it would be too buggy. |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 08 Mar 2013 10:44 AM |
| Get out.You spammed mine i spammed yours. |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 08 Mar 2013 10:56 AM |
| Ah, but Guthix had his people which learnt the ways of combat. |
|
|
| Report Abuse |
|
|
| |
|
RoflBread
|
  |
| Joined: 18 Jun 2009 |
| Total Posts: 3803 |
|
| |
|
|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| Joined: 18 Jun 2009 |
| Total Posts: 3803 |
|
|
| 08 Mar 2013 02:10 PM |
| Ohhhh, wicked. You da man. |
|
|
| Report Abuse |
|
|
| |
|